public function location_handler_field_location_street::render in Location 7.3
Same name and namespace in other branches
- 6.3 handlers/location_handler_field_location_street.inc \location_handler_field_location_street::render()
- 7.5 handlers/location_handler_field_location_street.inc \location_handler_field_location_street::render()
- 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 51 - Province field handler.
Class
Code
public 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);
}