Preprocess Functions Presentation at DrupalCamp LA

Aug 8 2009

At DrupalCamp LA, I gave a presentation about preprocess functions, their purpose, a few techniques and examples, as well as the philosophy associated with theming.

As promised, here is the code used in the presentation as well as the slides in pdf form. Most of the talk was focussed around examples.

The code talks for itself, it is fairly well commented and provides a few good examples of the types of things that can be done using preprocess. In order to use this code, simply copy/paste the contents into your theme's template.php and change the "mytheme" to the name of your theme.

Files

Comments

ilessing writes:

I was lucky enough to catch this excellent presentation at drupalcampLA. Matt is top notch. This was by far the best session of the conference. Thank you Matt

robin writes:

thanks for sharing ++

noussh writes:

Watched the video online. Really good. Great to know you can do so many things with preprocess functions without touching page.tpl.php.

I have always started my themes from scratch. I will checkout 'studio' theme you mentioned.

Thanks Matt.