You are here

function location_handler_field_location_address::render in Location 7.4

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

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

handlers/location_handler_field_location_address.inc, line 26
Field handler to display a complete address.

Class

location_handler_field_location_address
@file Field handler to display a complete address.

Code

function render($values) {
  if ($values->{$this->field_alias}) {
    $location = location_load_location($values->{$this->field_alias});
    if ($location['lid']) {
      return theme('location', $location, $this->options['hide']);
    }
  }
}