Here's my .module code:
/**
* Implements hook_theme_registery_alter()
*/
function popover_theme_registery_alter(&$theme_registery) {
$theme_registery['popover'] = array(
'template' => drupal_get_path('module','popover'). '/popover.tpl.php',
'type' => 'module',
);
}
I'm having some plain html elements in the tpl.php file so that might be not good? or do I have to call this hook somewhere? what's wrong?
$output = theme('popover', array(/* some args */));
, that uses a template file for it's output? – Clive♦ Apr 12 '12 at 15:44?>
, I want to us a template and this is my try of doing it. So I guess this only generates a renderable array? I need to Implement a function to generate the output? – FLY Apr 12 '12 at 15:47