Drupal 7 Module Development

More Information
  • Build modules extending Drupal's core functionality
  • Create custom content types and entities
  • Learn how to work with Drupal's hook system
  • Explore the major APIs introduced in Drupal 7 that the pros use to build successful Drupal websites
  • Test your code programatically with Drupal's new Simple Test framework
  • Build and extend themes to make your Drupal 7 shine
  • Author interactive form-based tools with Drupal's Forms API
  • Apply the principals of Test Drive Development (TDD) using Drupal's built-in SimpleTest framework
  • Leverage the book's working module examples as a starting point for you own code
  • Discover the secrets of Drupal professionals as they explain the practical aspects of good Drupal development

Drupal is an award-winning open-source Content Management System. It's a modular system, with an elegant hook-based architecture, and great code. Modules are plugins for Drupal that extend, build or enhance Drupal core functionality.

In Drupal 7 Module development book, six professional Drupal developers use a practical, example-based approach to introduce PHP developers to the powerful new Drupal 7 tools, APIs, and strategies for writing custom Drupal code.

These tools not only make management and maintenance of websites much easier, but they are also great fun to play around with and amazingly easy to use.

If you're eager to learn about these new APIs and start creating modules for Drupal 7, this is your book. Walk through the development of complete Drupal modules with this primer for PHP programmers.

From basic modules and themes to sophisticated Drupal extensions, learn how to use Drupal's API and hook system to build powerful custom Drupal websites. With an emphasis on practical programming, this book takes a project-based approach, providing working examples in every chapter
Specifically written for Drupal 7, this book will get you coding modules as quickly as possible, and help you add the features that will give your work that professional gloss!

This book will walk you through the development of complete Drupal modules and show you how to add various features to meet your requirements.

The Drupal content management system, written in the popular PHP language, has skyrocketed in popularity.

Developers for this system are in high demand. This book prepares PHP developers for Drupal development, explaining architecture, exploring APIs, and emphasizing practical approaches.

In each chapter, readers will learn new aspects of the system while creating fully-functioning modules, themes, and libraries. Learn how to “hook into” any part of the Drupal process, creating custom content types, extending existing capabilities, and integrating with external services and applications.

  • Specifically written for Drupal 7 development
  • Write your own Drupal modules, themes, and libraries
  • Discover the powerful new tools introduced in Drupal 7
  • Learn the programming secrets of six experienced Drupal developers
  • Get practical with this book's project-based format
Page Count 420
Course Length 12 hours 36 minutes
ISBN 9781849511162
Date Of Publication 3 Dec 2010


Matt Butcher

Matt is a web developer and author. He has previously written five other books for Packt, including two others on Drupal. He is a senior developer for the New York Times Company, where he works on ConsumerSearch.com, one of the most traffic-heavy Drupal sites in the world. He is the maintainer of multiple Drupal modules and also heads QueryPath – a jQuery-like PHP library. He blogs occasionally athttp://technosophos.com.


Larry Garfield

Larry Garfield has been a PHP developer for over a decade and a Drupal developer for half a decade. He is currently a Senior Architect and Consultant with Palantir.net, a leading Drupal development firm specializing in institutional non-profit clients. Larry is also the Drupal database maintainer and maintainer of many Drupal modules, and was one of the lead organizers of the GoPHP5 project. He writes about Drupal and, occasionally, other technical subjects at http://www.garfieldtech.com/

John Wilkins

John Wilkins has been a web developer for a long time. In April 1993, he was one of the lucky few to use the very first graphical web browser, Mosaic 1.0, and he’s been doing web development professionally since 1994. In 2005, John finally learned how idiotic it is to build your own web application framework and discovered the power of Drupal; he never looked back.

In the Drupal community, he is best known as JohnAlbin, one of the top 20 contributors to Drupal 7 and the maintainer of the Zen theme, which is a highly-documented, feature-rich “starter” theme with a powerfully flexible CSS framework. He has also written several front-end-oriented utility modules, such as the Menu Block module. John currently works with a bunch of really cool Drupal developers, designers, and themers at Palantir.net.

Matt Farina

Matt Farina is a senior Front End Developer and Engineer at Palantir.net, a Chicago-based firm that specializes in Drupal development. At Palantir.net, he works on a wide variety of projects ranging from museums to large interactive sites, including OpenSource.com. He is a contributor to Drupal code as well as a maintainer of multiple Drupal modules.

Prior to doing Drupal development full time, Matt worked in the defense industry for General Dynamics Land Systems. At General Dynamics he started as a Diagnostics and Testability Engineer. He eventually transitioned into the role of a Software Engineer building internal web based tools.

Ken Rickard

Ken Rickard is a senior programmer at Palantir.net, a Chicago-based firm specializing in developing Drupal web sites. He is a frequent contributor to the Drupal project and is the maintainer of the Domain Access, MySite and Menu Node API modules. At Palantir, he architects and builds large-scale web sites for a diverse range of customers, including Foreign Affairs magazine, NASCAR and the University of Chicago.

From 1998 through 2008, Ken worked in the newspaper industry, beginning his career managing web sites and later becoming a researcher and consultant for Morris DigitalWorks. At Morris, Ken helped launch BlufftonToday.com, the first newspaper web site launched on the Drupal platform. He later led the Drupal development team for SavannahNOW.com. He co-founded the Newspapers on Drupal group (http://groups.drupal.org/newspapers-on-drupal) and is a frequent advisor to the newspaper and publishing industries.

In 2008, Ken helped start the Knight Drupal Initiative, an open grant process for Drupal development, funded by the John L. and James S. Knight Foundation. He is also a member of the advisory board of PBS Engage, a Knight Foundation project to bring social media to the Public Broadcasting Service.

Prior to this book, Ken was a Technical Reviewer for Packt Publishing’s Drupal 6 Site Blueprints by Timi Ogunjobi.


Greg Dunlap

Greg Dunlap is a software engineer based in Stockholm, Sweden. Over the past 15 years Greg has been involved in a wide variety of projects including desktop database applications, kiosks, embedded software for pinball and slot machines, and websites in over a dozen programming languages. Greg has been heavily involved with Drupal for three years, and is the maintainer of the Deploy and Services modules as well as a frequent speaker at Drupal conferences. Greg is currently Principal Software Developer at NodeOne.

Several people played crucial roles in my development as a Drupal contributor, providing support and encouragement just when I needed it most. My deepest gratitude to Gary Love, Jeff Eaton, Boris Mann, Angie Byron and Ken Rickard for helping me kick it up a notch. Extra special thanks to the lovely Roya Naini for putting up with lost nights and weekends in the service of finishing my chapters.