function shortcut_set_delete_form_submit

7.x shortcut.admin.inc shortcut_set_delete_form_submit($form, &$form_state)

Submit handler for shortcut_set_delete_form().

File

drupal-7.x/modules/shortcut/shortcut.admin.inc, line 712
Administrative page callbacks for the shortcut module.

Code

function shortcut_set_delete_form_submit($form, &$form_state) {
  $shortcut_set = shortcut_set_load($form_state['values']['shortcut_set']);
  shortcut_set_delete($shortcut_set);
  $form_state['redirect'] = 'admin/config/user-interface/shortcut';
  drupal_set_message(t('The shortcut set %title has been deleted.', array('%title' => $shortcut_set->title)));
}