function country_get_list

Get list of all predefined and custom countries.

Return value

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

2 calls to country_get_list()
system_regional_settings in drupal/core/modules/system/system.admin.inc
Form builder; Configure the site regional settings.
_install_configure_form in drupal/core/includes/install.core.inc
Form constructor for a site configuration form.

File

drupal/core/modules/system/system.module, line 3892
Configuration system that lets administrators modify the workings of the site.

Code

function country_get_list() {
  include_once DRUPAL_ROOT . '/core/includes/standard.inc';
  $countries = standard_country_list();

  // Allow other modules to modify the country list.
  drupal_alter('countries', $countries);
  return $countries;
}