E-Book Overview
<em>Pro Drupal 7 Development updates the most popular development reference for the release of Drupal 7. With several new and completely-rewritten essential APIs and improvements in Drupal 7, this book will not only teach developers how to write modules ranging from simple to complex, but also how Drupal itself works.
- Learn the Drupal APIs and major changes in Drupal 7
- Learn how to write Drupal modules using the APIs
- Learn proper development practices and how to become a contributing community member
E-Book Content
Pro Drupal 7 Development Third Edition ■■■ 4ODD4OMLINSON *OHN+ 6AN$YK 0RO$RUPAL $EVELOPMENT 4HIRD%DITION #OPYRIGHTÚ BY4ODD4OMLINSONAND*OHN+ 6AN$YK !LLRIGHTSRESERVED .OPARTOFTHISWORKMAYBEREPRODUCEDORTRANSMITTEDINANYFORMORBYANYMEANS ELECTRONICORMECHANICAL INCLUDINGPHOTOCOPYING RECORDING ORBYANYINFORMATIONSTORAGEORRETRIEVAL SYSTEM WITHOUTTHEPRIORWRITTENPERMISSIONOFTHECOPYRIGHTOWNERANDTHEPUBLISHER )3". PBK )3". ELECTRONIC 0RINTEDANDBOUNDINTHE5NITED3TATESOF!MERICA 4RADEMARKEDNAMES LOGOS ANDIMAGESMAYAPPEARINTHISBOOK 2ATHERTHANUSEATRADEMARKSYMBOL WITHEVERYOCCURRENCEOFATRADEMARKEDNAME LOGO ORIMAGEWEUSETHENAMES LOGOS ANDIMAGESONLY INANEDITORIALFASHIONANDTOTHEBENEFITOFTHETRADEMARKOWNER WITHNOINTENTIONOFINFRINGEMENTOF THETRADEMARK 4HEUSEINTHISPUBLICATIONOFTRADENAMES TRADEMARKS SERVICEMARKS ANDSIMILARTERMS EVENIFTHEYARE NOTIDENTIFIEDASSUCH ISNOTTOBETAKENASANEXPRESSIONOFOPINIONASTOWHETHERORNOTTHEYARESUBJECT TOPROPRIETARYRIGHTS 0RESIDENTAND0UBLISHER 0AUL-ANNING ,EAD%DITOR -ICHELLE,OWMAN 4ECHNICAL2EVIEWERS *OSHUA"RAUER 2OBERT$OUGLASS 0ETER- 7OLANIN %DITORIAL"OARD 3TEVE!NGLIN -ARK"ECKNER %WAN"UCKINGHAM 'ARY#ORNELL *ONATHAN'ENNICK *ONATHAN(ASSELL -ICHELLE,OWMAN -ATTHEW-OODIE $UNCAN0ARKES *EFFREY0EPPER &RANK 0OHLMANN $OUGLAS0UNDICK "EN2ENOW #LARKE $OMINIC3HAKESHAFT -ATT7ADE 4OM7ELSH #OORDINATING%DITOR !NITA#ASTRO #OPY%DITOR -ARY!NN&UGATE 0RODUCTION3UPPORT 0ATRICK#UNNINGHAM )NDEXER ")-)NDEXING 0ROOFREADING3ERVICES !RTIST !PRIL-ILNE #OVER$ESIGNER !NNA)SHCHENKO $ISTRIBUTEDTOTHEBOOKTRADEWORLDWIDEBY3PRINGER3CIENCE "USINESS-EDIA ,,# 3PRING3TREET TH&LOOR .EW9ORK .9 0HONE 302).'%2 FAX E MAIL^aSTab ]h/b_aX]VTa bQ\ R^\ ORVISITfff b_aX]VTa^][X]T R^\ &ORINFORMATIONONTRANSLATIONS PLEASEE MAILRIGHTS APRESS COM ORVISITWWW APRESS COM !PRESSANDFRIENDSOF%$BOOKSMAYBEPURCHASEDINBULKFORACADEMIC CORPORATE ORPROMOTIONALUSE E"OOKVERSIONSANDLICENSESAREALSOAVAILABLEFORMOSTTITLES &ORMOREINFORMATION REFERENCEOUR 3PECIAL"ULK3ALESnE"OOK,ICENSINGWEBPAGEATfff P_aTbb R^\ X]U^ Qd[ZbP[Tb 4HEINFORMATIONINTHISBOOKISDISTRIBUTEDONANhASISvBASIS WITHOUTWARRANTY !LTHOUGHEVERY PRECAUTIONHASBEENTAKENINTHEPREPARATIONOFTHISWORK NEITHERTHEAUTHOR S NOR!PRESSSHALLHAVE ANYLIABILITYTOANYPERSONORENTITYWITHRESPECTTOANYLOSSORDAMAGECAUSEDORALLEGEDTOBECAUSED DIRECTLYORINDIRECTLYBYTHEINFORMATIONCONTAINEDINTHISWORK Contents at a Glance &OREWORD XXV !BOUTTHE!UTHORS XXVI !BOUTTHE4ECHNICAL2EVIEWERS XXVII !CKNOWLEDGMENTS XXVIII )NTRODUCTION XXIX ■#HAPTER (OW$RUPAL7ORKS ■#HAPTER 7RITINGA-ODULE ■#HAPTER (OOKS !CTIONS AND4RIGGERS