Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function gra_zen_preprocess_page(&$vars, $hook) {
- if (isset($vars['node'])) {
- // If the node type is "blog" the template suggestion will be "page-blog.tpl.php".
- $vars['template_files'][] = 'page-'. str_replace('_', '-', $vars['node']->type);
- }
- }
Add Comment
Please, Sign In to add comment