Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* this function will add a template entry for the node using it's id.
- i.e. each node -could- have it's own template file.. following the
- schema of: node-112.tpl.php where 112 is the node id. */
- function THEMENAME_preprocess_node(&$vars){
- $vars['template_files'][] = 'node-'. $vars['node']->nid;
- }
- function THEMENAME_preprocess_page(&$vars){
- $vars['template_files'][] = 'page-'. $vars['node']->type;
- }
Advertisement
Add Comment
Please, Sign In to add comment