You are here

function location_handler_field_location_country::render in Location 6.3

Same name and namespace in other branches
  1. 7.5 handlers/location_handler_field_location_country.inc \location_handler_field_location_country::render()
  2. 7.3 handlers/location_handler_field_location_country.inc \location_handler_field_location_country::render()
  3. 7.4 handlers/location_handler_field_location_country.inc \location_handler_field_location_country::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}));
  }
}