function location_handler_field_location_country::render in Location 7.5
Same name and namespace in other branches
- 6.3 handlers/location_handler_field_location_country.inc \location_handler_field_location_country::render()
- 7.3 handlers/location_handler_field_location_country.inc \location_handler_field_location_country::render()
- 7.4 handlers/location_handler_field_location_country.inc \location_handler_field_location_country::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- handlers/
location_handler_field_location_country.inc, line 26 - Country field handler.
Class
- location_handler_field_location_country
- @file Country field handler.
Code
function render($values) {
if ($this->options['style'] == 'name') {
return check_plain(location_country_name($values->{$this->field_alias}));
}
else {
return check_plain(strtoupper($values->{$this->field_alias}));
}
}