Drupal 7

Making use of Drush to save time as a Drupal Site Builder / Themer / Developer / DevOps

Drush can be one of the nicest tools to have, when you want to speed up quite a lot of your daily Drupal operations.

Here are some of the usages I've come across, for Drupal 7:

Clearing cache:

# clear all caches
drush cc all

# rebuild caches
drush cr

Download and enable modules:

# download module modulename
drush dl modulename

# enable a downloaded module
drush en modulename

# to skip the Yes or No confirmation questions:
drush -y en modulename

[SOLVED][PHP PEAR] How to fix the error 'could not extract the package.xml file' and 'Download of "pecl/uploadprogress" succeeded, but it is not a valid package archive', when trying to install PECL uploadprogress using PHP PEAR on Ubuntu 14.04 Trusty

Setting up, upgrading and maintaining a clean and functional Drupal/PHP Development environment is an art, and quite a piece of cake for the skilled sysadmin. But the ever changing versions of OS packages and dependencies can bring up quite some unexpected challenges to a budding developer. Here is the solution to one such error that might eat your brains out.

Almost all usable versions of Drupal - 6, 7 and 8 - use PECL uploadprogress to show file upload progress.
And installing it on previous Ubuntu, PHP versions was as easy as running the following command:

[PATCH] How to set workflow comment during automated stated transition with Workflow Rules Set State Action on a Drupal 7 site

The Workflow module in Drupal, as part of its Rules module integration, allows you various rules based actions, of which one commonly used one is the action to change the workflow state from state to another. But that one doesn't have an option to set the comment for that state change, which can be quite useful when you see the Workflow History of a node.

I have created a patch for the latest dev version (7.x-1.0+20-dev) of the Workflow module to help you with that:

My first Drupal core patch is live!

My first Drupal core patch, that corrects a repeating "have to" in one of the function comments in system.api.php, has gone live in today's Drupal 7 release (version 7.17).

Here's the Issue Post on Drupal.org:
http://drupal.org/node/1802844

:-)

Subscribe to RSS - Drupal 7
randomness