You are here

function menu_delete_menu_page in Drupal 6

Same name and namespace in other branches
  1. 7 modules/menu/menu.admin.inc \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 modules/menu/menu.module
Implementation of hook_menu().

File

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

Code

function menu_delete_menu_page($menu) {

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