18.10.2016 Views

Drupal 7 Module Development

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Drupal</strong>’s Theme Layer<br />

Summary<br />

You've learned a lot in this chapter. Since many of these theme concepts are interrelated,<br />

its challenging to learn them (and explain them!), so that the entire complex<br />

system makes sense. We touched on almost all parts of the theme system, including:<br />

• Theme functions and template files<br />

• Preprocess and process functions<br />

• Default theme implementations and theme overrides<br />

• drupal_render(), render elements and their properties<br />

• hook_element_info()<br />

• hook_page_alter()<br />

• theme(), theme hooks and theme hook suggestions<br />

• Theme registry, hook_theme(), and hook_theme_registry_alter()<br />

I once created a graph that showed all the parts of theme system in one graphic, but<br />

it was more scary then useful. Or course, if you like horror, head over to:<br />

http://www.slideshare.net/JohnAlbin/default-theme-implementations<br />

In the next chapter, we'll take some of the most important topics in this chapter and<br />

use them to build a real world example.<br />

[ 90 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!