Programmer's guide to Drupal [principles, practices, and pitfalls]

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...

Full description

Bibliographic Details
Corporate Author: EbscoHost (Servicio en línea) (-)
Other Authors: Hodgdon, Jennifer, author (author)
Format: eBook
Language:Inglés
Published: Beijing : O'Reilly 2015.
Edition:2nd ed
Subjects:
See on Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629569306719
Table of Contents:
  • Copyright; Table of Contents; Preface; Intended Audience; How to Use This Book; Drupal Versions; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 1. Overview of Drupal; What Is Drupal?; Drupal Core; Drupal Add-Ons: Modules, Themes, Distributions, and Translations; The Evolution of Drupal; How Drupal Handles HTTP Requests; HTTP Request Handling in Drupal 7; HTTP Request Handling in Drupal 8; The Drupal Cache; Drupal 7 Cache API; Drupal 8 Cache API; Automatic Class Loading in Drupal; Chapter 2. Drupal Programming Principles
  • Principle: Drupal Is AlterableSetting Up a Module or Theme; The Basics of Module and Theme Hook Programming; Making Your Module Output Themeable; The Basics of Drupal 8 Plugin Programming; Drupal 8 Services and Dependency Injection; Interacting with the Drupal 8 Event System; Principle: Drupal Separates Content, Configuration, and State Data; Information Storage in Drupal 7; Information Separation in Drupal 8; Configuration API in Drupal 8; State API in Drupal 8; Principle: Drupal Is International; Internationalizing User Interface Text; Internationalizing User-Entered Text in Drupal 7
  • Internationalizing User-Entered Text in Drupal 8Principle: Drupal Is Accessible and Usable; Principle: Drupal Is Database-Independent; Setting Up Database Tables: Schema API and hook_update_N(); Querying the Database with the Database API; Principle: Drupal Is Secure; User Input Is Insecure; Cleansing and Checking User-Provided Input; Checking Drupal Permissions; Principle: Drupal Code Is Tested and Documented; Chapter 3. Common Drupal Programming Mistakes; Mistake: Programming Too Much; Avoiding Custom Programming with Fielded Data; Defining Theme Regions for Block Placement
  • Mistake: Overexecuting CodeMistake: Executing Code on Every Page Load; Mistake: Using an Overly General Hook; Mistake: Saving PHP Code in the Database; Mistake: Working Alone; Participating in Groups and IRC; Reporting Issues and Contributing Code to the Drupal Community; Contributing to the Drupal Community in Other Ways; Chapter 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 8Registering 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; Form Arrays, Form State Arrays, and Form State Objects; Basic Form Generation and Processing in Drupal 7; Basic Form Generation and Processing in Drupal 8; Creating Confirmation Forms; Adding Autocomplete to Forms; Altering Forms; Programming with Ajax in Drupal; Setting Up a Form for Ajax; Wrapper-Based Ajax Callback Functions
  • Command-Based Ajax Callback Functions in Drupal 7