class location_views_handler_field_coordinates in Location 6.3
Same name and namespace in other branches
- 7.5 handlers/location_views_handler_field_coordinates.inc \location_views_handler_field_coordinates
- 7.3 handlers/location_views_handler_field_coordinates.inc \location_views_handler_field_coordinates
- 7.4 handlers/location_views_handler_field_coordinates.inc \location_views_handler_field_coordinates
@file Coordinates field handler.
Hierarchy
- class \location_views_handler_field_latitude extends \views_handler_field
Expanded class hierarchy of location_views_handler_field_coordinates
1 string reference to 'location_views_handler_field_coordinates'
- location_views_data in ./
location.views.inc - Implementation of hook_views_data().
File
- handlers/
location_views_handler_field_coordinates.inc, line 8 - Coordinates field handler.
View source
class location_views_handler_field_coordinates extends location_views_handler_field_latitude {
function construct() {
parent::construct();
$this->additional_fields['longitude'] = 'longitude';
}
function render($values) {
if ($this->options['style'] == 'dms') {
return theme('location_latitude_dms', $values->{$this->field_alias}) . ', ' . theme('location_longitude_dms', $values->{$this->aliases['longitude']});
}
else {
return check_plain($values->{$this->field_alias}) . ', ' . check_plain($values->{$this->aliases['longitude']});
}
}
}