You are here

function multiselect_settings in Multiselect 7

Admin settings form

1 string reference to 'multiselect_settings'
multiselect_menu in ./multiselect.module
Implements hook_menu().

File

./multiselect.admin.inc, line 12
Admin page callbacks.

Code

function multiselect_settings() {
  $form = array();
  $form['multiselect_widths'] = array(
    '#type' => 'textfield',
    '#title' => t('Width of Select Boxes (in pixels)'),
    '#description' => t('By default, the boxes are each 250px wide.'),
    '#default_value' => variable_get('multiselect_widths'),
    '#size' => 3,
    '#field_suffix' => 'px',
    '#required' => TRUE,
  );
  $form = system_settings_form($form);
  return $form;
}