You are here

function shortcut_set_edit_form_submit in Drupal 7

Submit handler for shortcut_set_edit_form().

File

modules/shortcut/shortcut.admin.inc, line 648
Administrative page callbacks for the shortcut module.

Code

function shortcut_set_edit_form_submit($form, &$form_state) {
  $shortcut_set = $form_state['values']['shortcut_set'];
  $shortcut_set->title = $form_state['values']['title'];
  shortcut_set_save($shortcut_set);
  drupal_set_message(t('Updated set name to %set-name.', array(
    '%set-name' => $shortcut_set->title,
  )));
  $form_state['redirect'] = "admin/config/user-interface/shortcut/{$shortcut_set->set_name}";
}