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
0895b661
Commit
0895b661
authored
May 15, 2013
by
Dries Buytaert
Browse files
Issue
#1954684
by tim.plunkett, Crell: When type => MENU_DEFAULT_LOCAL_TASK, ignore a route_name().
parent
8e57fb52
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/includes/menu.inc
View file @
0895b661
...
...
@@ -2672,6 +2672,13 @@ function menu_router_build($save = FALSE) {
$router_items
=
call_user_func
(
$module
.
'_menu'
);
if
(
isset
(
$router_items
)
&&
is_array
(
$router_items
))
{
foreach
(
array_keys
(
$router_items
)
as
$path
)
{
// If the menu item is a default local task and incorrectly references a
// route, remove it.
// @todo This may be removed later depending on the outcome of
// http://drupal.org/node/1889790
if
(
isset
(
$router_items
[
$path
][
'type'
])
&&
$router_items
[
$path
][
'type'
]
==
MENU_DEFAULT_LOCAL_TASK
)
{
unset
(
$router_items
[
$path
][
'route_name'
]);
}
// If the menu item references a route, normalize the route information
// into the old structure. Note that routes are keyed by name, not path,
// so the path of the route takes precedence.
...
...
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