function menu_reset_item in Drupal 6
Same name and namespace in other branches
- 4 modules/menu.module \menu_reset_item()
- 5 modules/menu/menu.module \menu_reset_item()
- 7 modules/menu/menu.module \menu_reset_item()
Reset a system-defined menu item.
2 calls to menu_reset_item()
- menu_delete_menu_confirm_submit in modules/
menu/ menu.admin.inc - Delete a custom menu and all items in it.
- menu_reset_item_confirm_submit in modules/
menu/ menu.admin.inc - Process menu reset item form submissions.
File
- modules/
menu/ menu.module, line 257 - Allows administrators to customize the site navigation menu.
Code
function menu_reset_item($item) {
$new_item = _menu_link_build(menu_get_item($item['router_path']));
foreach (array(
'mlid',
'has_children',
) as $key) {
$new_item[$key] = $item[$key];
}
menu_link_save($new_item);
return $new_item;
}