You are here

function menu_reset_item_confirm_submit in Drupal 6

Same name and namespace in other branches
  1. 7 modules/menu/menu.admin.inc \menu_reset_item_confirm_submit()

Process menu reset item form submissions.

File

modules/menu/menu.admin.inc, line 595
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 item was reset to its default settings.'));
  $form_state['redirect'] = 'admin/build/menu-customize/' . $new_item['menu_name'];
}