function location_country_name in Location 5.3
Same name and namespace in other branches
- 6.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_load_location in ./
location.module - Load a single location by lid.
- location_search_form_alter in contrib/
location_search/ location_search.module - location_views_country_handler in contrib/
location_views/ location_views.module - Format a country name.
- location_views_handler_arg_country in contrib/
location_views/ location_views.module - location_views_handler_arg_user_country in contrib/
location_views/ location_views.module - Country argument handler.
File
- ./
location.inc, line 483
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 '';
}
}