Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Custom
- * it is a content type
- * virtual_office_4
- */
- function colourise_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