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 modules/
menu/ menu.module - Implements hook_menu().
File
-
modules/
menu/ menu.admin.inc, line 526
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.