Did you by design limit the use of menu--block.tpl.php to system menus? It can be easily expanded to all defined menus.

Comments

Jeff Burnz’s picture

At the moment its applied to all Menu module blocks and the 4 generated menus 'navigation', 'main-menu', 'management', 'user-menu', see html5_boilerplate_preprocess_block().

dcrocks’s picture

Sorry, still don't understand about system building theme_suggestions. I had used:

if (in_array($vars['block']->delta, array_keys(menu_get_menus()))) {
$vars['theme_hook_suggestions'][] = 'block__menu';

but that is unnecessary and more overhead.

Jeff Burnz’s picture

Hmmm, probably needs benchmarking as to which is faster, they way I have done it using menu_get_menus(), maybe this information is available with less overhead, I am not a menu system expert by any means. Will need to investigate, definitely an approach, clearly in D8 we need to fix this.