1 menu.admin.inc menu_delete_menu_page($menu)

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

File

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