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