shortcut_link_add

Versions
7
shortcut_link_add($form, &$form_state, $shortcut_set)

Menu callback; Build the form for adding a new shortcut link.

See also

shortcut_link_edit_validate()

@see shortcut_link_add_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_set An object representing the shortcut set to which the link will be added.

Return value

An array representing the form definition.

Related topics

Code

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

<?php
function shortcut_link_add($form, &$form_state, $shortcut_set) {
  drupal_set_title(t('Add new shortcut'));
  $form['shortcut_set'] = array(
    '#type' => 'value',
    '#value' => $shortcut_set,
  );
  $form += _shortcut_link_form_elements();
  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.