Closed (fixed)
Project:
Admin
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2010 at 01:00 UTC
Updated:
9 May 2010 at 17:10 UTC
Jump to comment: Most recent file
We've experienced an issue where using theme_menu_tree() in the theme layer changes the admin modules's menu's to the point they don't work properly.
As admin is dependant on the default theme_menu_tree() implementation, our solution was to override theme_admin_menu_tree_output() in our theme layer and customise the last call to theme_menu_tree().
function MYMODULE_admin_menu_tree_output() {
...
/* stop it from using our new menu tree and use Drupal default */
//return $output ? theme('menu_tree', $output) : '';
if($output) {
return '<ul class="menu">'. $output .'</ul>';
}
}
A better solution may be to hardcode this into the Admin modules theme.inc, or create a new theme hook just for that call??
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | admin-menu-issue.png | 11.67 KB | alexkb |
Comments
Comment #1
alexkb commentedWe also had the same problem. We originally thought it was a CSS/templating issue too!
To others identify the problem - attached is a screenshot of what happens if you override the themename_menu_tree function in your theme.
Thanks.
Comment #2
yhahn commentedThanks. Fix committed here: http://drupal.org/cvs?commit=359182