You are here

class views_handler_field_countries in Countries 8

Provides a country filter.

Hierarchy

Expanded class hierarchy of views_handler_field_countries

1 string reference to 'views_handler_field_countries'
countries_views_data in views/countries.views.inc
Implements hook_views_data().

File

views/views_handler_field_countries.inc, line 11
Views field handler class for the translatable country properties.

View source
class views_handler_field_countries extends views_handler_field {

  /**
   * Render a translated country name.
   */
  function render($values) {
    if ($value = $this
      ->get_value($values, 'iso2')) {
      if ($country = country_load($value)) {
        return country_property($country, $this->real_field);
      }
    }
    return '';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
views_handler_field_countries::render function Render a translated country name.