Source Code
Important Note! The source code we are providing here is only for use with the Drupal 6 version of the book. The source code for the Drupal 7 version (now in Rough Cuts) will not be available until the book is complete.
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.
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:
- 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.
- 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.
Enjoy!
CHANGELOG
2010-09-25:
- Added note to this page to clarify note about using source code, and PHP 5.2.
- Added note about Amazon API changing its API. Affects Chapter 4.
2009-08-22:
- Upgraded Calendar to 6.x-2.0-rc4 to fix the iCal feed bug. Affects Chapter 9.
2009-01-16:
- Upgraded FileField module to version 6.x-3.0-alpha6 to stop fatal errors / blank screens when enabling both Content and FileField modules at the same time. Affects Chapters 3, 7, and 10. (Thanks, Angie!)
- Upgraded Workflow module to version 1.1 to solve the "warning: Missing argument 1 for trigger_access_check() in /modules/trigger/trigger.module on line 129" problem when viewing triggers. Affects Chapter 6. (Thanks, Mark!)
2008-12-02:
- Fixed problem with forum setup in i18n profile. (thanks, Addi!)
- Renamed store profile stuff to Chapter 10, rather than Chapter 11. (thanks, Steph!)
- Stopped hard-coding the site titles in installation profiles. (thanks, Dmitri!)
2008-11-27:
- Initial version of source code.
KNOWN ISSUES
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.
Various
- 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 http://drupal.org/node/359661. (Thanks, Lena!)
Chapter 4
- As of August 2009, Amazon.com 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!)
Download the Using Drupal source code - 14.6MB (August 22, 2009)