Preprocess Hooks in template php - DrupalCorn Camp 2013 @drupalcorn
Preprocess Hooks in template php - DrupalCorn Camp 2013  @drupalcorn
Uploaded August 2013 | Updated November 2026, 3 hours ago
Preprocess hooks are one of the hidden gems of D7, providing even more control at the theme/presentation level, and all with a very small amount of easy php coding. If you're a desiger/themer and you know your CSS, preprocess hooks are a quick and excellent addition to your Drupal tool belt.

Topics covered:

* Why preprocess hooks? Why not use the .tpl file?
* Which hooks and where?
* What data can you alter?
* Example 1: Adding alt text
* Example 2: Adding custom javascript
* Example 3: Adding custom classes
* Additional Resources
Preprocess Hooks in template php - DrupalCorn Camp 2013Web Accessibility Training for Drupal DevelopersDrupal Performance Tuning A Jump Start - DrupalCorn Camp 201545 modules in 45 minutesUpgrading to Drupal 8/9 using the Migrate API - DrupalCorn Meetup 2020-07-09Building a WikiIowa Now Leveraging Drupal Beyond Web Pages - DrupalCorn Camp 2013Managing Patches with Drush - DrupalCorn Camp 2014A Project Managers Inner Developer: Traversing the Digital Landscape with AgilityIntroduction to Backbone.jsTwig and Component LibrariesCode Koalas Presents: The 7 Deadly Sins of Client / Partner Relationships and How to Avoid Them
DrupalCorn |

Preprocess Hooks in template php - DrupalCorn Camp 2013

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER