1 locale.inc country_get_list()

Get list of all predefined and custom countries.

Return value

An array of all country code => country name pairs.:

File

core/includes/locale.inc, line 869
Administration functions for locale.module.

Code

function country_get_list() {
  include_once BACKDROP_ROOT . '/core/includes/standard.inc';
  $countries = standard_country_list();
  // Allow other modules to modify the country list.
  backdrop_alter('countries', $countries);
  return $countries;
}