public function weather_handler_wind_direction::render in Weather 7.3
Same name and namespace in other branches
- 7.2 views_handlers/weather_handler_wind_direction.inc \weather_handler_wind_direction::render()
Render wind information with selected unit.
Overrides views_handler_field::render
File
- views_handlers/
weather_handler_wind_direction.inc, line 62 - Views handler for weather module.
Class
- weather_handler_wind_direction
- Field handler to render the wind direction.
Code
public function render($values) {
if (is_null($values->{$this->field_alias})) {
return;
}
$value = $values->{$this->field_alias};
module_load_include('inc', 'weather', 'weather_theme');
return weather_format_wind_direction($value, $this->options['wind_settings']);
}