Created
January 12, 2014 19:07
-
-
Save mjordan/8388973 to your computer and use it in GitHub Desktop.
Example hook_theme() with template
This file contains hidden or 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_theme(). | |
* Registers all theme hooks defined by this module. | |
*/ | |
function mymodule_theme() { | |
return array( | |
'mymodule_my_hello' => array( | |
'variables' => array( | |
'title' => NULL, | |
'template' => 'mymodule-hello', | |
), | |
), | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment