1 menu.admin.inc menu_item_delete_page($item)

Menu callback; Check access and present a confirm form for deleting a menu link.

File

core/modules/menu/menu.admin.inc, line 745
Admin page callbacks for the 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 backdrop_get_form('menu_item_delete_form', $item);
}