function shortcut_link_delete_submit

Submit handler for shortcut_link_delete_submit().

File

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

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

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