public function weather_handler_pressure::option_definition in Weather 7.3
Same name and namespace in other branches
- 7.2 views_handlers/weather_handler_pressure.inc \weather_handler_pressure::option_definition()
Setup default unit.
Overrides views_handler_field_numeric::option_definition
File
- views_handlers/
weather_handler_pressure.inc, line 32 - Views handler for weather module.
Class
- weather_handler_pressure
- Field handler to allow selection of pressure units.
Code
public function option_definition() {
$options = parent::option_definition();
$options['unit'] = array(
'default' => 'hpa',
);
return $options;
}