You are here

class location_handler_argument_location_country in Location 6.3

Same name and namespace in other branches
  1. 7.5 handlers/location_handler_argument_location_country.inc \location_handler_argument_location_country
  2. 7.3 handlers/location_handler_argument_location_country.inc \location_handler_argument_location_country
  3. 7.4 handlers/location_handler_argument_location_country.inc \location_handler_argument_location_country

Argument handler to accept a country code or name.

Hierarchy

Expanded class hierarchy of location_handler_argument_location_country

1 string reference to 'location_handler_argument_location_country'
location_views_data in ./location.views.inc
Implementation of hook_views_data().

File

handlers/location_handler_argument_location_country.inc, line 6

View source
class location_handler_argument_location_country extends views_handler_argument {

  /**
   * Override the behavior of title(). Get the country name.
   */
  function title() {
    return location_country_name($this->argument);
  }
  function summary_name($data) {
    $value = $data->{$this->name_alias};
    if (empty($value)) {
      return t('Unknown');
    }
    return location_country_name($value);
  }

}

Members