function menu_delete_menu_page

Menu callback; check access and get a confirm form for deletion of a custom menu.

1 string reference to 'menu_delete_menu_page'
menu_menu in drupal/modules/menu/menu.module
Implements hook_menu().

File

drupal/modules/menu/menu.admin.inc, line 512
Administrative page callbacks for menu module.

Code

function menu_delete_menu_page($menu) {

  // System-defined menus may not be deleted.
  $system_menus = menu_list_system_menus();
  if (isset($system_menus[$menu['menu_name']])) {
    return MENU_ACCESS_DENIED;
  }
  return drupal_get_form('menu_delete_menu_confirm', $menu);
}