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
610bc6f7
Commit
610bc6f7
authored
Jan 31, 2009
by
Angie Byron
Browse files
#326210
by AlexisWhite and jhedstrom: Pass ->menu by reference to allow modules to modify it.
parent
2c381622
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/menu/menu.admin.inc
View file @
610bc6f7
...
...
@@ -366,7 +366,7 @@ function menu_item_delete_submit($form, &$form_state) {
* Process menu and menu item add/edit form submissions.
*/
function
menu_edit_item_submit
(
$form
,
&
$form_state
)
{
$item
=
$form_state
[
'values'
][
'menu'
];
$item
=
&
$form_state
[
'values'
][
'menu'
];
// The value of "hidden" is the opposite of the value
// supplied by the "enabled" checkbox.
...
...
modules/menu/menu.module
View file @
610bc6f7
...
...
@@ -293,7 +293,7 @@ function menu_block_view($delta = '') {
*/
function
menu_nodeapi_insert
(
&
$node
)
{
if
(
isset
(
$node
->
menu
))
{
$item
=
$node
->
menu
;
$item
=
&
$node
->
menu
;
if
(
!
empty
(
$item
[
'delete'
]))
{
menu_link_delete
(
$item
[
'mlid'
]);
}
...
...
@@ -315,7 +315,7 @@ function menu_nodeapi_insert(&$node) {
*/
function
menu_nodeapi_update
(
&
$node
)
{
if
(
isset
(
$node
->
menu
))
{
$item
=
$node
->
menu
;
$item
=
&
$node
->
menu
;
if
(
!
empty
(
$item
[
'delete'
]))
{
menu_link_delete
(
$item
[
'mlid'
]);
}
...
...
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