You are here

public function weather_handler_temperature::option_definition in Weather 7.3

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

Setup default unit.

Overrides views_handler_field_numeric::option_definition

File

views_handlers/weather_handler_temperature.inc, line 32
Views handler for weather module.

Class

weather_handler_temperature
Field handler to allow selection of temperature units.

Code

public function option_definition() {
  $options = parent::option_definition();
  $options['unit'] = array(
    'default' => 'celsius',
  );
  return $options;
}