function menu_delete_menu_page

7.x menu.admin.inc menu_delete_menu_page($menu)

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

2 string references to 'menu_delete_menu_page'
drupal-6.filled.database.php in drupal/modules/simpletest/tests/upgrade/drupal-6.filled.database.php
Filled installation of Drupal 6.17, for test purposes.
menu_menu in drupal/modules/menu/menu.module
Implements hook_menu().

File

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