function country_get_list in Drupal 7
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 modules/
system/ system.admin.inc - Form builder; Configure the site regional settings.
- _install_configure_form in includes/
install.core.inc - Form constructor for a site configuration form.
File
- includes/
locale.inc, line 2401 - 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;
}