Source Code

Welcome to the source code for the Using Drupal book! This code contains a copy of Drupal and all of the contributed modules and themes you'll need to work through the hands-on excercises, as well as additional "asset" files such as logos and product images, that are referenced in some of the chapters. The versions included are the exact versions used in the book so that the examples in the book continue to work throughout the ages.

Please keep in mind that there are two versions of the source code, for the two versions of the book. The First Edition uses Drupal 6 and the Second Edition uses Drupal 7. Make sure you are using the correct source code for your version.

Drupal 7 (Second Edition)

Download the Using Drupal source code (Drupal 7) - 34.96MB (June 2014)

For video instruction on how to use this source code with the book, please refer to the Drupalize.Me lesson Installing the Using Drupal Source Code.

Drupal 6 (First Edition)

We recommend that you go through the book chapters using the exact source code provided. Your life will be infinitely easier. A couple of important caveats, however:

  1. The Drupal community moves quickly, especially when in comes to improving our favorite tools. Critical security updates and important bug fixes can and will happen after Using Drupal is published, so you should make sure to upgrade Drupal and all modules in this download before putting the code into use on a production site. You can find some guidance on how to do this in Appendix A.
  2. Since this code is a couple of years old, PHP 5.3 will not work. Later versions of Drupal 6 handle this a bit better, but look for a setting in WAMP or MAMP that lets you switch back to PHP 5.2, and you should be able to get through fine.

This download contains Drupal 6.4 and the module and theme versions listed in Appendix C.


Download the Using Drupal source code (Drupal 6) - 14.6MB (August 22, 2009)

Known Issues for Drupal 6 Source Code

Check here first if you think you're going crazy! ;)

Note that these are source code-related issues only. O'Reilly's Using Drupal errata section is still the definitive source for errata.


  • In various chapters, there have been a number of PostgreSQL-related issues reported on the O'Reilly Using Drupal forum. Make sure to check there if you're using PostgreSQL and anything funny is going on. (Thanks, ccurvey!)

Chapter 3

  • Page 132, Figure 3-33, the image shows a number of path-related options for the Department argument, when building the view, which don't exist in the version of CCK that ships with the source code. :( These got removed in one of the later release candidates of CCK, but Nate is on the case to put these useful options back over at (Thanks, Lena!)

Chapter 4

  • As of August 2009, requires that all access to its data use a site-specific API key. To use this module and follow the rest of the chapter, you must sign up for an Amazon API account and request an access key. This process is free, but without it, the module won't do anything.

Chapter 6

  • Page 215-217, the various e-mail templates will fail to turn tokens such as %username and %author into actual values. This is a Drupal core bug which will be fixed in a later version. (Thanks, Mark!)