You are here

function getlocations_fields_handler_field_latitude::render in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_fields/handlers/getlocations_fields_handler_field_latitude.inc \getlocations_fields_handler_field_latitude::render()

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

1 call to getlocations_fields_handler_field_latitude::render()
getlocations_fields_handler_field_longitude::render in modules/getlocations_fields/handlers/getlocations_fields_handler_field_longitude.inc
Render the field.
2 methods override getlocations_fields_handler_field_latitude::render()
getlocations_fields_handler_field_coordinates::render in modules/getlocations_fields/handlers/getlocations_fields_handler_field_coordinates.inc
Render the field.
getlocations_fields_handler_field_longitude::render in modules/getlocations_fields/handlers/getlocations_fields_handler_field_longitude.inc
Render the field.

File

modules/getlocations_fields/handlers/getlocations_fields_handler_field_latitude.inc, line 33
getlocations_fields_handler_field_latitude.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Class

getlocations_fields_handler_field_latitude
@file getlocations_fields_handler_field_latitude.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function render($values) {
  if ($this->options['style'] == 'dd') {
    return parent::render($values);
    return check_plain($values->{$this->field_alias});
  }
  else {
    return theme('getlocations_latitude_dms', array(
      'latitude' => $values->{$this->field_alias},
    ));
  }
}