You are here

function menu_item_delete_page in Drupal 7

Same name and namespace in other branches
  1. 6 modules/menu/menu.admin.inc \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 634
Administrative page callbacks for menu module.

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);
}