location_handler_argument_location_country.inc in Location 7.4
Same filename and directory in other branches
File
handlers/location_handler_argument_location_country.incView source
<?php
/**
* Argument handler to accept a country code or name.
*/
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);
}
}
Classes
Name | Description |
---|---|
location_handler_argument_location_country | Argument handler to accept a country code or name. |