I'm trying to implement pattern and template suggestion but It doesn't work.
Here is the implementation of hook_theme()
with my pattern:
$theme['nm_home_page_zone'] = array(
'pattern' => 'nm_home_page_zone__',
'arguments' => array('nodes_content' => array(), 'nodes' => array()),
'template' => 'zone-contenu',
),
And I call theme()
with the following code:
$output .= theme(array('nm_home_page_zone__'.$rowZone->model.'_'.$rowZone->weight, 'nm_home_page_zone__'.$rowZone->model, 'nm_home_page_zone'), array(), array());
I got 2 template files (zone-contenu.tpl.php and zone-contenu--one.tpl.php) in my theme and my module (just to be sure).
The pattern and template suggestion should use zone-contenu--one.tpl.php in my case, but it doesn't work.
What I'm missing here?