function shortcut_set_delete_form_submit

Submit handler for shortcut_set_delete_form().

File

modules/shortcut/shortcut.admin.inc, line 712

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,
    )));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.