The features module is a great module for maintaining multiple instances of a Drupal site (e.g., dev, test, prod). Whenever I added a new context , view or content type to the site and wanted to... Read more
Ever needed to just clear a single page from the Drupal cache on a live, heavily trafficked site?
Enjoy!
drush sqlq "DELETE FROM cache_page WHERE cid = 'http://example.com/'"
Or if you're using aliases:
drush @your_alias sqlq... Read more
I wanted to write a quick script that would send an email reminding me of how much time was left until a particular event. This is what I came up with!
<?php /** * Sends an email with a 'time left' reminder */
/**... Read more
I recently upgraded my hosting package with 1and1 and now able to use SSH to connect to my webserver! There were a few different places out there that I had to piece together in order to setup my SSH keys with the 1and1 server so I decided I would... Read more
Recently, someone was asking me how to modify the items of a particular menu within a Drupal powered site. In particular, they wanted to modify all but the last menu item. This is where the Drupal API comes to the rescue with its... Read more