Chapters & Authors of the Definitive Guide to Drupal 7

  • Definitive Guide to Drupal 7

  • The Definitive Guide to Drupal 7 accelerates people along the Drupal learning curve by covering all aspects of doing Drupal: site building and development, running projects sustainably, and participating in the community. The primary focus is on building sites with Drupal 7, bringing in all the knowledge this requires: of configuration, available modules, theming, project management, and ultimately advanced development.

  • PART 5: Module Development

  • 18 — 18. Introduction to Module Development

  • Chapters 18, 19, and 20 form one unit, originally written as one chapter, covering everything you need to know to get started writing your own modules.

    These chapters cover the basics of a module and how Drupal uses hooks in nearly everything it does to allow modules to extend and modify Drupal. (We will also explain what hooks are.) You will receive an overview of technical skills required to develop a module and instruction and examples for using the hooks and functions provided by Drupal in the course of building a complete module. Finally, you will look at the refinement of a Drupal.org-worthy module, including fixing errors and reviewing for coding standards.

  • 23 — 23. Introduction to Functional Testing with Simpletest

  • Learn how to write tests for your module, an essential part of reliable and sustainable code.

  • 22 — 22. Writing Project-Specific Modules

  • Another good onramp to writing modules is "glue code", site-specific modules to make the final tweaks you cannot quite achieve with configuration. This chapter can be read without reading the previous chapters first.