function country_get_list
7.x locale.inc | 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-7.x/
modules/ system/ system.admin.inc - Form builder; Configure the site regional settings.
- _install_configure_form in drupal-7.x/
includes/ install.core.inc - Form constructor for a site configuration form.
File
- drupal-7.x/
includes/ locale.inc, line 2351 - Administration functions for locale.module.
Code
function country_get_list() {
include_once DRUPAL_ROOT . '/includes/iso.inc';
$countries = _country_get_predefined_list();
// Allow other modules to modify the country list.
drupal_alter('countries', $countries);
return $countries;
}