public function location_views_handler_field_coordinates::render in Location 7.3
Same name and namespace in other branches
- 6.3 handlers/location_views_handler_field_coordinates.inc \location_views_handler_field_coordinates::render()
- 7.5 handlers/location_views_handler_field_coordinates.inc \location_views_handler_field_coordinates::render()
- 7.4 handlers/location_views_handler_field_coordinates.inc \location_views_handler_field_coordinates::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides location_views_handler_field_latitude::render
File
- handlers/
location_views_handler_field_coordinates.inc, line 21 - Coordinates field handler.
Class
Code
public function render($values) {
if ($this->options['style'] == 'dms') {
return theme('location_latitude_dms', array(
'latitude' => $values->{$this->field_alias},
)) . ', ' . theme('location_longitude_dms', array(
'longitude' => $values->{$this->aliases['longitude']},
));
}
else {
return check_plain($values->{$this->field_alias}) . ', ' . check_plain($values->{$this->aliases['longitude']});
}
}