country_get_list

Versions
7
country_get_list()

Get list of all predefined and custom countries.

Return value

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

▾ 2 functions call country_get_list()

system_regional_settings in modules/system/system.admin.inc
Form builder; Configure the site regional settings.
_install_configure_form in ./install.php
Form API array definition for site configuration.

Code

includes/locale.inc, line 3208

<?php
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;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.