function views_handler_field_countries::render in Countries 8
Render a translated country name.
File
- views/
views_handler_field_countries.inc, line 16 - Views field handler class for the translatable country properties.
Class
- views_handler_field_countries
- Provides a country filter.
Code
function render($values) {
if ($value = $this
->get_value($values, 'iso2')) {
if ($country = country_load($value)) {
return country_property($country, $this->real_field);
}
}
return '';
}