You are here

public function location_handler_field_location_address::render in Location 7.3

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.4 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 53
Field handler to display a complete address.

Class

location_handler_field_location_address

Code

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