Home 2010 June

Drupal node templates based on node id

Published on June 26, 2010 by in Drupal, PHP

Code Snippet to allow you to override and specify node templates based on node id.
Put the code in your template.php file
* Override or insert variables into the node templates.
* @param $vars
* An array of variables to pass to the theme template.
* @param $hook
* The name of the template being rendered (“node” [...]

 Share on Facebook Share on Twitter Share on Reddit Share on LinkedIn
No Comments  comments 
© Brainstorms of a Webdev