hook_countries_alter
function hook_countries_alter
hook_countries_alter(&$countries)
Alter the default country list.
Parameters
$countries: The associative array of countries keyed by ISO 3166-1 country code.
See also
_country_get_predefined_list()
Related topics
File
- modules/system/system.api.php, line 4711
- Hooks provided by Drupal core and the System module.
Code
function hook_countries_alter(&$countries) { // Elbonia is now independent, so add it to the country list. $countries['EB'] = 'Elbonia'; }
© 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/modules!system!system.api.php/function/hook_countries_alter/7.x