Theme Preprocess Functions

tools

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

Let's Theme

The Theme .info file

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

theme.inc

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

use the dpm() function from devel module

  • prints out the page variables
dpm($vars)
  • 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