Learning Drupal 6 Module
Development
A practical tutorial for creating your first Drupal 6
modules with PHP
Matt Butcher
BIRMINGHAM - MUMBAI
Learning Drupal 6 Module Development
Copyright © 2008 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of
the information presented. However, the information contained in this book is sold
without warranty, either express or implied. Neither the author, Packt Publishing,
nor its dealers or distributors will be held liable for any damages caused or alleged to
be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
First published: May 2008
Production Reference: 1020508
Published by Packt Publishing Ltd.
32 Lincoln Road
Olton
Birmingham, B27 6PA, UK.
ISBN 978-1-847194-44-2
www.packtpub.com
Cover Image by Cadym Guryevich (
dgurevich@holbi.co.uk
)
Credits
Author
Matt Butcher
Reviewers
Jason Flatt
John Forsythe
Edward Peters
David Norman
Sherif
Senior Acquisition Editor
Douglas Paterson
Development Editor
Swapna V. Verlekar
Technical Editor
Akshara Aware
Editorial Team Leader
Mithil Kulkarni
Project Manager
Abhijeet Deobhakta
Project Coordinator
Patricia Weir
Indexer
Monica Ajmera
Proofreader
Chris Smith
Production Coordinator
Aparna Bhagat
Cover Work
Aparna Bhagat
About the Author
Matt Butcher
is the principal consultant for Aleph-Null, Inc.
(
http://aleph-null.tv
), where he specializes in content management systems,
Linux system integration, and Open Source technologies. He has been an active
participant in open-source technologies for over a decade. Along with Learning
Drupal 6, Matt has also written Mastering OpenLDAP, Managing and Customizing
OpenCms 6, and Building Websites with OpenCms, all of which are published by
Packt. When not pushing bits, Matt likes to explore Colorado with his wife and
three daughters.
The Drupal community has not only been a boundless source of
information, but also a positive environment. This community is to
be commended for creating a successful habitat for growing a
top-quality application. Writing this book has involved a veritable
army of editors, technical reviewers, and proofreaders. This book
has beneted tremendously from their hard work. I would like
to thank Douglas Patterson not only for being my editor, but for
getting me involved with Drupal in the rst place. Thanks to Patricia
Weir and Swapna V.Verlekar, who have worked tirelessly on the
book. I owe a huge debt of gratitude to John Forsythe and Jason
Flatt, whose meticulous reading and copious suggestions have had
a profound inuence on the nal state of this book. I'd also like to
thank: Edward Peters, David Norman, and Sherif for their invaluable
suggestions. Thanks also to the many individuals at Drupalcon 2008
who provided input and who took the time to chat with me about
Drupal. Finally, thanks to Angie, Katherine, Claire, and Annabelle
for putting up with a few late nights and some occasional whining.