You are here

function high_contrast_settings_form in High contrast 6

Same name and namespace in other branches
  1. 7 high_contrast.module \high_contrast_settings_form()

Settings form

1 string reference to 'high_contrast_settings_form'
high_contrast_menu in ./high_contrast.module
Implementation of hook_menu()

File

./high_contrast.module, line 78

Code

function high_contrast_settings_form() {
  $form = array();
  $widgets = array(
    "links" => "Links",
  );
  $form['high_contrast_switcher_widget'] = array(
    '#type' => 'select',
    '#title' => t('Switcher widget'),
    '#default_value' => _high_contrast_variable_get("high_contrast_switcher_widget"),
    '#options' => $widgets,
    '#required' => TRUE,
  );
  $form['high_contrast_switcher_label'] = array(
    '#type' => 'textfield',
    '#title' => t('Switcher label'),
    '#default_value' => _high_contrast_variable_get("high_contrast_switcher_label"),
    '#required' => TRUE,
  );
  $form['high_contrast_high_label'] = array(
    '#type' => 'textfield',
    '#title' => t('High contrast label'),
    '#default_value' => _high_contrast_variable_get("high_contrast_high_label"),
    '#required' => TRUE,
  );
  $form['high_contrast_separator'] = array(
    '#type' => 'textfield',
    '#title' => t('Separator'),
    '#default_value' => _high_contrast_variable_get("high_contrast_separator"),
    '#required' => TRUE,
  );
  $form['high_contrast_normal_label'] = array(
    '#type' => 'textfield',
    '#title' => t('Normal contrast label'),
    '#default_value' => _high_contrast_variable_get("high_contrast_normal_label"),
    '#required' => TRUE,
  );
  $form['high_contrast_css_styles'] = array(
    '#type' => 'textarea',
    '#title' => t('Used CSS styles'),
    '#default_value' => _high_contrast_get_current_css_styles(),
    '#required' => TRUE,
    '#attributes' => array(
      'style' => 'width:50em; height:30em; line-height:1.2em; font-family:"Courier New", "Courier";',
    ),
    '#suffix' => '<p>' . t('Default CSS styles used to override the active theme') . ':</p><div><pre>' . _high_contrast_get_default_css_styles() . '</pre></div>',
  );
  return system_settings_form($form);
}