I am using this function to register a tpl file in a module.
/**
* Implementation of hook_theme().
*/
function frontpage_carousel_theme($existing) {
return array(
'ds_1col' => array(
'arguments' => array(),
'template' => 'ds-1col--node-carousel-carousel',
'original hook' => 'ds_1col__node',
'path' => drupal_get_path('module', 'frontpage_carousel') . '/templates',
'type' => 'module',
'preprocess functions' => array('template_preprocess', 'template_preprocess'),
),
);
}
this works fine, but is used for every node. I would like to apply it only to ds-1col--node-carousel-carousel.tpl.php, but
return array(
'ds_1col__node_carousel_carousel' => array(
does not work. Does anyone have an idea ?