You are here

function location_country_name in Location 7.5

Same name and namespace in other branches
  1. 5.3 location.inc \location_country_name()
  2. 6.3 location.inc \location_country_name()
  3. 7.3 location.inc \location_country_name()
  4. 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
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

... See full list

File

./location.inc, line 489

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 '';
  }
}