class location_handler_argument_location_country in Location 6.3
Same name and namespace in other branches
- 7.5 handlers/location_handler_argument_location_country.inc \location_handler_argument_location_country
- 7.3 handlers/location_handler_argument_location_country.inc \location_handler_argument_location_country
- 7.4 handlers/location_handler_argument_location_country.inc \location_handler_argument_location_country
Argument handler to accept a country code or name.
Hierarchy
- class \location_handler_argument_location_country extends \views_handler_argument
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
location_handler_argument_location_country:: |
function | |||
location_handler_argument_location_country:: |
function | Override the behavior of title(). Get the country name. |