You are here

public function weather_handler_wind_direction::options_form in Weather 7.3

Same name and namespace in other branches
  1. 7.2 views_handlers/weather_handler_wind_direction.inc \weather_handler_wind_direction::options_form()

Provide settings to select for wind direction.

Overrides views_handler_field::options_form

File

views_handlers/weather_handler_wind_direction.inc, line 41
Views handler for weather module.

Class

weather_handler_wind_direction
Field handler to render the wind direction.

Code

public function options_form(&$form, &$form_state) {
  $form['wind_settings'] = array(
    '#title' => t('Formatting of wind direction display'),
    '#description' => t('Select formatting for wind directions or display only value.'),
    '#type' => 'select',
    '#default_value' => $this->options['wind_settings'],
    '#options' => array(
      'normal' => t('Normal text'),
      'normal_degree' => t('Normal text with degree'),
      'abbreviated' => t('Abbreviated text'),
      'abbreviated_degree' => t('Abbreviated text with degree'),
      'degree' => t('Degree'),
      'degree_value' => t('Degree (only value)'),
    ),
  );
  parent::options_form($form, $form_state);
}