You are here

function menu_item_delete_form in Drupal 7

Same name and namespace in other branches
  1. 4 modules/menu.module \menu_item_delete_form()
  2. 5 modules/menu/menu.module \menu_item_delete_form()
  3. 6 modules/menu/menu.admin.inc \menu_item_delete_form()

Build a confirm form for deletion of a single menu link.

1 string reference to 'menu_item_delete_form'
menu_item_delete_page in modules/menu/menu.admin.inc
Menu callback; Check access and present a confirm form for deleting a menu link.

File

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

Code

function menu_item_delete_form($form, &$form_state, $item) {
  $form['#item'] = $item;
  return confirm_form($form, t('Are you sure you want to delete the custom menu link %item?', array(
    '%item' => $item['link_title'],
  )), 'admin/structure/menu/manage/' . $item['menu_name']);
}