1.20.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.:
File
- includes/
locale.inc, line 883 - Administration functions for locale.module.
Code
function country_get_list() {
include_once BACKDROP_ROOT . '/core/includes/standard.inc';
$countries = standard_country_list();
// Allow other modules to modify the country list.
backdrop_alter('countries', $countries);
return $countries;
}