Preprocess hooks

Events happening in the community are now at Drupal community events on www.drupal.org.
bstoppel's picture

Does Panels support any preprocess hooks? According to Theme Developer, it doesn't.

Comments

take a look at a the page

fending's picture

THEME_preprocess_page and THEME_panels_pane give me a lot of what I need for my purposes. Have you tried those? It would be nice to THEME_preprocess_panel_PANELNAME, but I don't think that's out there.

Also, check out this method: http://drupal.org/node/334209#comment-1330758

Access page variables in panel templates

bstoppel's picture

I need access to some of the page variables: $breadcrumb, $mission, $tabs, $title, $tabs, $tabs2, $show_messages, $messages, $help in my panels-*.tpl.php files. I tried declaring the pages vars as global in THEME_panels_pane, but that doesn't work. How do I gain access to these vars in the tpls?

Use preprocess_page

lgomezc's picture

You have to use preprocess page to get access to these variables. Check http://drupal.org/node/223430

Panels

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: