function menu_item_delete_page
Menu callback; Check access and present a confirm form for deleting a menu link.
1 string reference to 'menu_item_delete_page'
- menu_menu in modules/
menu/ menu.module - Implements hook_menu().
File
-
modules/
menu/ menu.admin.inc, line 635
Code
function menu_item_delete_page($item) {
// Links defined via hook_menu may not be deleted. Updated items are an
// exception, as they can be broken.
if ($item['module'] == 'system' && !$item['updated']) {
return MENU_ACCESS_DENIED;
}
return drupal_get_form('menu_item_delete_form', $item);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.