Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
0351f4ca
Commit
0351f4ca
authored
Sep 26, 2007
by
Dries Buytaert
Browse files
- Patch
#164330
by Crell et al: restore menu classes.
parent
a0a97f2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/menu.inc
View file @
0351f4ca
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment