shortcut_set_add_form

Versions
mediamosa-21
shortcut_set_add_form($form, &$form_state)

Form callback: builds the form for adding a shortcut set.

See also

shortcut_set_add_form_submit()

Parameters

$form An associative array containing the structure of the form.

$form_state An associative array containing the current state of the form.

Return value

An array representing the form definition.

Related topics

Code

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

<?php
function shortcut_set_add_form($form, &$form_state) {
  $form['new'] = array(
    '#type' => 'textfield',
    '#title' => t('Set name'),
    '#description' => t('The new set is created by copying items from your default shortcut set.'),
  );

  $form['actions'] = array('#type' => 'container', '#attributes' => array('class' => array('form-actions')));
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Create new set'),
  );

  return $form;
}
?>