function 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 647

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']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.