function shortcut_link_edit

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

shortcut_link_edit_validate()

shortcut_link_edit_submit()

Related topics

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

File

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

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;
}

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