1.20.x system.api.php | 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
Related topics
File
- modules/
system/ system.api.php, line 3884 - Hooks provided by Backdrop 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';
}