function location_country_name in Location 7.3
Same name and namespace in other branches
- 5.3 location.inc \location_country_name()
- 6.3 location.inc \location_country_name()
- 7.5 location.inc \location_country_name()
- 7.4 location.inc \location_country_name()
Get the translated name of a country code.
7 calls to location_country_name()
- location_handler_argument_location_country::summary_name in handlers/
location_handler_argument_location_country.inc - Provides the name to use for the summary.
- 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 - Render the field.
- location_load_location in ./
location.module - Load a single location by lid.
- location_search_form_alter in contrib/
location_search/ location_search.module - Implements hook_form_alter().
File
- ./
location.inc, line 610 - Public API for the Location module.
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 '';
}
}