function country_get_list
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 2398
- 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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!locale.inc/function/country_get_list/7.x