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.
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
Fundamentals of Software Architecture
Salary surveys worldwide regularly place software architect in the top 10 best jobs, yet no real …
book
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …
book
High Performance Drupal
How can you help your Drupal website continue to perform at the highest level as it …
book
Programming PHP, 4th Edition
Why is PHP the most widely used programming language on the web? This updated edition teaches …