function shortcut_link_delete

Form callback: builds the confirmation form for deleting a shortcut link.

Parameters

$form: An associative array containing the structure of the form.

$form_state: An associative array containing the current state of the form.

$shortcut_link: An array representing the link that will be deleted.

Return value

An array representing the form definition.

See also

shortcut_link_delete_submit()

Related topics

1 string reference to 'shortcut_link_delete'
shortcut_menu in modules/shortcut/shortcut.module
Implements hook_menu().

File

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

Code

function shortcut_link_delete($form, &$form_state, $shortcut_link) {
    $form['shortcut_link'] = array(
        '#type' => 'value',
        '#value' => $shortcut_link,
    );
    return confirm_form($form, t('Are you sure you want to delete the shortcut %title?', array(
        '%title' => $shortcut_link['link_title'],
    )), 'admin/config/user-interface/shortcut/' . $shortcut_link['menu_name'], t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}

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