My human.tpl.php
file is located in /tpl
folder. Im trying to use hook_theme
from the module:
function human_theme($existing, $type, $theme, $path){
return array(
$item['human'] = array(
'template' => 'human',
'path' => drupal_get_path('module', 'human').'/tpl',
'type' => 'theme',
'variables' => array(),
),
);
return $item;
}
Why is this not working? I have some basic html code in my template file for testing purposes so it should show me something, but I get nothing back. If more information is needed, please let me know and I will add. Full code of a .module
file can be found here.
type
, its automatically derived from module/theme. Also you've not implementedtemplate_preprocess_human()
function which will define value of all your template file variables. Defining preprocess function might help.