You are here

function location_handler_field_location_street::render in Location 7.5

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

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

handlers/location_handler_field_location_street.inc, line 37
Province field handler.

Class

location_handler_field_location_street
@file Province field handler.

Code

function render($values) {
  $parts = array();
  if ($this->options['style'] != 'additional') {
    $parts[] = check_plain($values->{$this->field_alias});
  }
  if ($this->options['style'] != 'street') {
    $additional = trim($values->{$this->aliases['additional']});
    if (!empty($additional)) {
      $parts[] = check_plain($values->{$this->aliases['additional']});
    }
  }

  // @@@ Better theming?
  return implode('<br />', $parts);
}