Suppose i have this hook_theme() in my module, choosing a template inside the module:
/**
* Implements hook_theme().
*/
function module_theme($existing, $type, $theme, $path) {
return array(
'module-output' => array(
'template' => 'output-template',
'variables' => array(),
),
}
If i put the same output-template.tpl.php inside my active theme, Drupal picks up the module's template.
Is there a way to make Drupal understand that if a template with the same filename exists somewhere in the theme, to pick the theme's template and not the module's (like an override)?