1 menu.admin.inc menu_item_delete_form_submit($form, &$form_state)

Process menu delete form submissions.

File

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

Code

function menu_item_delete_form_submit($form, &$form_state) {
  $item = $form['#item'];
  menu_link_delete($item['mlid']);
  $t_args = array('%title' => $item['link_title']);
  backdrop_set_message(t('The menu link %title has been deleted.', $t_args));
  watchdog('menu', 'Deleted menu link %title.', $t_args, WATCHDOG_NOTICE);
  $form_state['redirect'] = 'admin/structure/menu/manage/' . $item['menu_name'];
}