function getlocations_fields_handler_field_coordinates::render in Get Locations 7.2
Same name and namespace in other branches
- 7 modules/getlocations_fields/handlers/getlocations_fields_handler_field_coordinates.inc \getlocations_fields_handler_field_coordinates::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides getlocations_fields_handler_field_latitude::render
File
- modules/
getlocations_fields/ handlers/ getlocations_fields_handler_field_coordinates.inc, line 18 - getlocations_fields_handler_field_coordinates.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Class
- getlocations_fields_handler_field_coordinates
- @file getlocations_fields_handler_field_coordinates.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function render($values) {
if ($this->options['style'] == 'dms') {
return theme('getlocations_latitude_dms', array(
'latitude' => $values->{$this->field_alias},
)) . ', ' . theme('getlocations_longitude_dms', array(
'longitude' => $values->{$this->aliases['longitude']},
));
}
else {
return check_plain($values->{$this->field_alias}) . ', ' . check_plain($values->{$this->aliases['longitude']});
}
}