You are here

function location_views_handler_field_coordinates::render in Location 6.3

Same name and namespace in other branches
  1. 7.5 handlers/location_views_handler_field_coordinates.inc \location_views_handler_field_coordinates::render()
  2. 7.3 handlers/location_views_handler_field_coordinates.inc \location_views_handler_field_coordinates::render()
  3. 7.4 handlers/location_views_handler_field_coordinates.inc \location_views_handler_field_coordinates::render()

Overrides location_views_handler_field_latitude::render

File

handlers/location_views_handler_field_coordinates.inc, line 15
Coordinates field handler.

Class

location_views_handler_field_coordinates
@file Coordinates field handler.

Code

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']});
  }
}