Use theme hook suggestion in drupal

If you want to Drupal to use some specific template based on some name, then you have to write theme hook suggestion. Through which you can mention your custom template file that will used by Drupal instead of page.tpl.php or some other template file. Here is the code : function …

Use template conditionally in drupal

In Drupal you want to use some other template on the basis on some condition. This blog is all about of using template on the basis of some condition. Write the following function in your theme’s template.php and replace THEME with your theme name. This preprocess hook load the tpl …