- Patch #890884 by joachim: targeted overrides for theme_menu_link() and theme_menu_tree() fail for menus with a hyphen.
parent
5eb6a99c4a
commit
6789c8dc04
|
@ -961,7 +961,7 @@ function menu_tree_output($tree) {
|
|||
$build['#sorted'] = TRUE;
|
||||
// Add the theme wrapper for outer markup.
|
||||
// Allow menu-specific theme overrides.
|
||||
$build['#theme_wrappers'][] = 'menu_tree__' . $data['link']['menu_name'];
|
||||
$build['#theme_wrappers'][] = 'menu_tree__' . strtr($data['link']['menu_name'], '-', '_');
|
||||
}
|
||||
|
||||
return $build;
|
||||
|
|
Loading…
Reference in New Issue