function shortcut_link_delete_submit in Drupal 7
Submit handler for shortcut_link_delete_submit().
File
- modules/
shortcut/ shortcut.admin.inc, line 754 - Administrative page callbacks for the shortcut module.
Code
function shortcut_link_delete_submit($form, &$form_state) {
$shortcut_link = $form_state['values']['shortcut_link'];
menu_link_delete($shortcut_link['mlid']);
$form_state['redirect'] = 'admin/config/user-interface/shortcut/' . $shortcut_link['menu_name'];
drupal_set_message(t('The shortcut %title has been deleted.', array(
'%title' => $shortcut_link['link_title'],
)));
}