Theme Preprocess Functions


  • Firebug
  • Devel module
    • devel_themer ??
  • admin or admin_menu
  • drush

Let's Theme

The Theme .info file

stylsheets[all][] = ...
regions = ...

  • Don't mess with this file itself!
  • grab functions from and copy into template.php to override

use the dpm() function from devel module

  • prints out the page variables
  • theme_hook_suggestions: shows templates that would be used for current page
    • node__article
    • node__231
  • wrap all strings in t() "translate" functions
  • want to get into $vars eg $content or $subitted

Drupal API site is your friend