You are here

function getlocations_fields_handler_field_longitude::render in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_fields/handlers/getlocations_fields_handler_field_longitude.inc \getlocations_fields_handler_field_longitude::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_longitude.inc, line 14
getlocations_fields_handler_field_longitude.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Class

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

Code

function render($values) {
  if ($this->options['style'] == 'dms') {
    return theme('getlocations_longitude_dms', array(
      'longitude' => $values->{$this->field_alias},
    ));
  }
  return parent::render($values);
}