function location_country_name in Location 6.3
Same name and namespace in other branches
- 5.3 location.inc \location_country_name()
- 7.5 location.inc \location_country_name()
- 7.3 location.inc \location_country_name()
- 7.4 location.inc \location_country_name()
Get the translated name of a country code.
6 calls to location_country_name()
- location_handler_argument_location_country::summary_name in handlers/
location_handler_argument_location_country.inc - location_handler_argument_location_country::title in handlers/
location_handler_argument_location_country.inc - Override the behavior of title(). Get the country name.
- location_handler_field_location_country::render in handlers/
location_handler_field_location_country.inc - location_load_location in ./
location.module - Load a single location by lid.
- location_search_form_alter in contrib/
location_search/ location_search.module
File
- ./
location.inc, line 474
Code
function location_country_name($country = 'us') {
location_standardize_country_code($country);
$countries = location_get_iso3166_list();
if (isset($countries[$country])) {
return $countries[$country];
}
else {
return '';
}
}