Created
September 8, 2014 14:04
-
-
Save develnk/f351945f4b15cd1b256e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_preprocess_html(). | |
*/ | |
function hook_preprocess_html(&$vars) { | |
$vars['theme_hook_suggestion'] = 'html__custompage'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_preprocess_node(). | |
*/ | |
function module_name_preprocess_node(&$vars) { | |
// Use different template | |
$vars['theme_hook_suggestions'][] = "node__type_content__custom"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_preprocess_page(). | |
*/ | |
function hook_preprocess_page(&$vars) { | |
$vars['theme_hook_suggestion'] = 'page__custompage'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment