You are here

function menu_item_delete_page in Drupal 6

Same name and namespace in other branches
  1. 7 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
Implementation of hook_menu().

File

modules/menu/menu.admin.inc, line 554
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']) {
    drupal_access_denied();
    return;
  }
  return drupal_get_form('menu_item_delete_form', $item);
}