I simply wanted to override the object.tpl.php template in a subtheme of Tao, but even though I copied the object.tpl.php into the templates directory of my subtheme and edited it, it still picks up the Tao template. Theme developer shows that the Tao template is picked up, not mine. I can override the page.tpl.php template with no problem, however.


Cap'taine Crochet’s picture

I've just found a solution. In my case the block.tpl.php resides in a MODULE/templates/object.tpl.php.

I also have a MODULE/templates/node-blog.tpl.php.

 * Implementation of hook_theme_registry_alter().
function MODULE_theme_registry_alter(&$theme_registry) {
// Override block template
$theme_registry['block']['path'] = drupal_get_path('module', 'MODULE') . '/templates';
$theme_registry['block']['theme path'] = drupal_get_path('module', 'MODULE') . '/templates';

// Augment node theme paths
$theme_registry['node']['theme paths'][] = drupal_get_path('module', 'MODULE') . '/templates';