diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-09-26 18:14:05 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-09-26 18:14:05 +0000 |
commit | 0351f4ca5dbbacab18168113c6bb46f3bf8b5382 (patch) | |
tree | dd4f6fd5ec57a41aeaaec7035f78d4fd6eeef7b4 /includes/menu.inc | |
parent | a0a97f2f1405d22c174e5bb977f8e5a41992f5ce (diff) | |
download | brdo-0351f4ca5dbbacab18168113c6bb46f3bf8b5382.tar.gz brdo-0351f4ca5dbbacab18168113c6bb46f3bf8b5382.tar.bz2 |
- Patch #164330 by Crell et al: restore menu classes.
Diffstat (limited to 'includes/menu.inc')
-rw-r--r-- | includes/menu.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index d18490e88..d93f0c09d 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -1050,7 +1050,9 @@ function menu_navigation_links($menu_name, $level = 0) { $l = $item['link']['options']; $l['href'] = $item['link']['href']; $l['title'] = $item['link']['title']; - $links[] = $l; + $l['attributes']['id'] = $item['link']['mlid']; + // Keyed with unique menu id to generate classes from theme_links(). + $links['menu-'. $item['link']['mlid']] = $l; } } return $links; @@ -1273,7 +1275,7 @@ function menu_set_active_trail($new_trail = NULL) { if ($item['tab_parent']) { // The title of a local task is used for the tab, never the page title. // Thus, replace it with the item corresponding to the root path to get - // the relevant href and title. For example, the menu item corresponding + // the relevant href and title. For example, the menu item corresponding // to 'admin' is used when on the 'By module' tab at 'admin/by-module'. $parts = explode('/', $item['tab_root']); $args = arg(); |