Guest User

Untitled

a guest
Oct 24th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. function gra_zen_preprocess_page(&$vars, $hook) {
  2. if (isset($vars['node'])) {
  3. // If the node type is "blog" the template suggestion will be "page-blog.tpl.php".
  4. $vars['template_files'][] = 'page-'. str_replace('_', '-', $vars['node']->type);
  5. }
  6. }
Add Comment
Please, Sign In to add comment