Closed (works as designed)
Project:
Drupal core
Version:
5.0-rc1
Component:
menu system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Dec 2006 at 09:26 UTC
Updated:
24 May 2011 at 21:51 UTC
It would be useful if the function menu_edit_item_form_submit
sets the mid, so you can use it in form_alter hooks when you save a
new menu or menu item. Otherwise this value is available only on update
but not in insert.
It should become :
function menu_edit_item_form_submit($form_id, &$form_values) {
$form_values['mid']=menu_edit_item_save($form_values);
return 'admin/build/menu';
}
Comments
Comment #1
tstoecklerThis is still valid in Drupal 8. The mlid is set in menu_edit_item() but is set to 0 by default for new menu links. On submit this value is not updated.
I don't really understand the use-case, though. Basically right after leaving this function, the whole form is meaningless.
Comment #2
tstoecklerActually I am going to close this issue. If the issue, whatever it may be, persists, please reopen and explain in detail.