Friday, January 13, 2012

How to programatically change a template file in drupal 6

When building modules in drupal, you often would like to change the template file of a specific hook, for example page.tpl.php.
Drupal does not have a special function to do this, but you can play with these 2 functiones: