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 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

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.