function menu_delete_menu_page in Drupal 7
Same name and namespace in other branches
- 6 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 - Implements hook_menu().
File
- modules/
menu/ menu.admin.inc, line 525 - 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);
}