Book description
If you’re a web programmer, your experiences have taught you certain lessons—and only some of them apply well to Drupal. Drupal has its own set of programming principles that require a different approach, and many programmers make mistakes when relying on skills they’ve used for other projects. This book will show you which programming techniques you can use—and which you should avoid—when building web applications with this popular content management framework.
Updated to cover both Drupal 7 and Drupal 8, the guidelines in this book demonstrate which programming practices conform to the "Drupal way" and which don’t. The book also serves as an excellent guide for Drupal 7 programmers looking to make the transition to Drupal 8.
Publisher resources
Table of contents
- Preface
- 1. Overview of Drupal
-
2. Drupal Programming Principles
- Principle: Drupal Is Alterable
- Principle: Drupal Separates Content, Configuration, and State Data
- Principle: Drupal Is International
- Principle: Drupal Is Accessible and Usable
- Principle: Drupal Is Database-Independent
- Principle: Drupal Is Secure; User Input Is Insecure
- Principle: Drupal Code Is Tested and Documented
- 3. Common Drupal Programming Mistakes
-
4. Drupal Programming Examples
-
Registering for URLs and Displaying Content
- Registering for a URL in Drupal 7
- Altering a URL Registration in Drupal 7
- Registering for a URL in Drupal 8
- Providing Administrative Links
- Altering Routes and Providing Dynamic Routes in Drupal 8
- Registering a Block in Drupal 7
- Registering a Block in Drupal 8
- Creating Render Arrays for Page and Block Output
- Render Arrays in Drupal 8
- Generating Paged Output
- Using the Drupal Form API
- Programming with Ajax in Drupal
- Programming with Entities and Fields
- Creating Views Module Add-Ons
- Creating Rules Module Add-Ons in Drupal 7
- Programming with CTools in Drupal 7
-
Registering for URLs and Displaying Content
- 5. Programming Tools and Tips
- Index
Product information
- Title: Programmer's Guide to Drupal, 2nd Edition
- Author(s):
- Release date: October 2015
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491911464
You might also like
book
Programmer's Guide to Drupal
If you’re a web programmer new to Drupal, this book shows you which programming techniques you …
book
Using Drupal, 2nd Edition
Take advantage of Drupal’s vast collection of community-contributed modules and discover how they make this web …
book
Beginning Drupal 8
Beginning Drupal 8 teaches you how to build, maintain, and manage Drupal 8-based web sites. The …
book
The Definitive Guide to Drupal 7
The Definitive Guide to Drupal 7 is the most comprehensive book for building web sites using …