function shortcut_set_delete_form_submit in Drupal 7
Submit handler for shortcut_set_delete_form().
File
- 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,
)));
}