We will be covering the following recipes in this chapter:
Changing the structure of a page using template files
Customizing the appearance of a particular node type
Customizing the appearance of a specific node
Theming made easy using the Devel module
Theme overrides using the Theme developer module
Styling the site maintenance page
Drupal's design stresses the separation of logic from presentation with the former being handled by modules and the latter by themes. Theme functions commonly those that are prefixed with theme_
and theme template files act as a bridge between the two as they are designed to be overrideable. All theme functions and template files are tracked by Drupal's theme system and cataloged in a theme registry. Modules and themes are expected to declare their theme functions and templates through the use of a function named hook_theme()
. This function is parsed for each module and theme and the resulting registry is cached in the database...