| Versions | |
|---|---|
| 7 | hook_countries_alter(&$countries) |
Alter the default country list.
$countries The associative array of countries keyed by ISO 3166-1 country code.
_country_get_predefined_list()
drupal/
<?php
function hook_countries_alter(&$countries) {
// Elbonia is now independent, so add it to the country list.
$countries['EB'] = 'Elbonia';
}
?>