Drush shell functions for easy module uninstalls

When working with Drupal in a local development environment, it is often necessary to disable and uninstall modules for various reasons. A module must be disabled before it can be uninstalled. I found it useful to have shell functions to issue the Drush pm-disable and pm-uninstall commands.

To set this up, add the following functions to the appropriate shell config files (ex: .bash_profile, .bashrc, .zshrc):


drush-ui() { drush pm-disable -y $@ && drush pm-uninstall -y $@ ;}

Z shell:

drush-ui() { drush pm-disable -y $@ ; drush pm-uninstall -y $@ }

Blog Category: 

DrupalCon Chicago 2011 Takeaways

It has been a little over a week since I came back home from DrupalCon Chicago. I have to say that I am still processing the many discussions and sessions I attended. I do feel that I can write a bit about my experiences at this point. Considering this is my first DrupalCon and that the trip was expensive, I feel both excited and blessed that my employer was able to send me this year.

Blog Category: 

Adding Additional Theme Features to Drupal Themes

I have some Drupal 6 themes which utilize images that need to be uploaded by the users to the sites files folder while maintaining one copy of the theme for a multisite install. It turns out to be simpler that I original expected.

I followed the instructions at http://drupal.org/node/177868 and it worked out quite well. I was able to modify some of the code further down on the same page in a comment to setup file uploads. See that code example here: http://drupal.org/node/177868#comment-1445178.

See some example results below:

Blog Category: