shortcut_link_edit

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

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

See also

shortcut_link_edit_validate()

@see shortcut_link_edit_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 is being edited.

Return value

An array representing the form definition.

Related topics

Code

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

<?php
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;
}
?>
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.