Drupal Planet

Download Different Versions of Drupal with Drush

How to download different versions of Drupal core using Drush.

Quickly Apply Patches Using Git and curl or wget

How to quickly download a patch file and apply it to a Git repository in one line.

Don’t Bootstrap Drupal, Use Drush

There are times when doing Drupal development when you need to run a custom PHP script, maybe moving data from one field to another, that doesn't warrant the time and effort to create a custom module. In this scenario, it would be quicker to write a .php script and bootstrap Drupal to gain access to functions like node_load() and db_query().

To bootstrap Drupal, you would need to add some additional lines of code to the stop of your script. Something like:

Create a Zen Sub-theme Using Drush

How to quickly create a Zen sub-theme using Drush.

Creating Local and Staging sites with Drupal's Domain Module Enabled

The Domain Access project is a suite of modules that provide tools for running a group of affiliated sites from one Drupal installation and a single shared database. The issue is that the domains are stored within the database so these are copied across when the data is migrated between environments, whereas the domains are obviously going to change.

Some useful links for using SimpleTest in Drupal

Here are some useful links that I've found when researching about unit testing in Drupal using SimpleTest:

Display Git Branch or Tag Names in your Bash Prompt

Whilst watching Drupalize.me's recent Introduction to Git series, I thought it was useful the way that the current Git branch or tag name was displayed in the bash prompt. Here's how to do it.

Creating and using custom tokens in Drupal 7

This post outlines the steps required to create your own custom tokens in Drupal.

When writing the recent releases of the [Copyright Block](http://drupal.org/project/copyright_block "Copyright Block module on Drupal.org) module, I used tokens to allow the user to edit and customise their copyright message and place the copyright_message:dates token in the desired position. When the block is rendered, the token is replaced by the necessary dates.

Checking if a user is logged into Drupal (the right way)

How to check if a user is logged into Drupal by using the user_is_logged_in() and user_is_anonymous() functions.

How to use SASS and Compass in Drupal 7 using Sassy

I've recently started using SASS rather than LESS to do my CSS preprocessing - namely due to its integration with Compass and it's built-in CSS3 mixins. There are three modules that provide the ability to use SASS within Drupal:


Subscribe to Drupal Planet