function shortcut_link_edit
shortcut_link_edit($form, &$form_state, $shortcut_link)
Form callback: builds the form for editing 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 is being edited.
Return value
An array representing the form definition.
See also
Related topics
File
- modules/shortcut/shortcut.admin.inc, line 446
- Administrative page callbacks for the shortcut module.
Code
function shortcut_link_edit($form, &$form_state, $shortcut_link) { drupal_set_title(t('Editing @shortcut', array('@shortcut' => $shortcut_link['link_title']))); $form['original_shortcut_link'] = array( '#type' => 'value', '#value' => $shortcut_link, ); $form += _shortcut_link_form_elements($shortcut_link); return $form; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!shortcut!shortcut.admin.inc/function/shortcut_link_edit/7.x