shortcut_link_delete

Versions
7
shortcut_link_delete($form, &$form_state, $shortcut_link)

Menu callback; Build the form for deleting a shortcut link.

See also

shortcut_link_delete_submit()

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.

Related topics

Code

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

<?php
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/system/shortcut/' . $shortcut_link['menu_name'],
    t('This action cannot be undone.'),
    t('Delete'),
    t('Cancel')
  );
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.