function menu_reset_item_confirm_submit

7.x menu.admin.inc menu_reset_item_confirm_submit($form, &$form_state)
6.x menu.admin.inc menu_reset_item_confirm_submit($form, &$form_state)

Process menu reset item form submissions.

File

drupal-7.x/modules/menu/menu.admin.inc, line 660
Administrative page callbacks for menu module.

Code

function menu_reset_item_confirm_submit($form, &$form_state) {
  $item = $form_state['values']['item'];
  $new_item = menu_reset_item($item);
  drupal_set_message(t('The menu link was reset to its default settings.'));
  $form_state['redirect'] = 'admin/structure/menu/manage/' . $new_item['menu_name'];
}