function getlocations_fields_handler_field_wkt::render in Get Locations 7.2
Same name and namespace in other branches
- 7 modules/getlocations_fields/handlers/getlocations_fields_handler_field_wkt.inc \getlocations_fields_handler_field_wkt::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- modules/
getlocations_fields/ handlers/ getlocations_fields_handler_field_wkt.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_wkt
- @file getlocations_fields_handler_field_coordinates.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function render($values) {
$lat = check_plain($values->{$this->field_alias});
$lat = trim($lat);
$lng = check_plain($values->{$this->aliases['longitude']});
$lng = trim($lng);
return 'POINT(' . $lng . ' ' . $lat . ')';
}