Hi I am desperetly trying to override the template of my D7 custom module's block here is my code :
function lnr_block_info() {
$menus = menu_get_menus();
$blocks['actualites_filter_article'] = array(
'info' => t('Actualités: Filtres Articles'),
);
return $blocks;
}
function lnr_block_view($delta = '') {
$block = array();
$menus = menu_get_menus();
if($delta == 'actualites_filter_article'){
$block['content'] = theme('actualite_filter_article');
}
return $block;
}
function lnr_theme() {
$module_path = drupal_get_path('module', 'lnr');
return array(
'actualite_filter_article' => array(
'variables' => array('result' => NULL),
'path' => $module_path. '/templates',
'template' => 'actualite-filter-article',
//leave off .tpl.php
),
);
}
The template of the module is loaded correctly, but once I copy paste it in the theme templates directory it is not overriden. (the name of the template file is : actualite-filter-article.tpl.php ). What aam i doing wrong ?
Thanks in advance