Skip to content
Snippets Groups Projects
Commit c1ca8a08 authored by Angie Byron's avatar Angie Byron
Browse files

#717666 by heyrocker: Document hook_countries_alter().

parent 8d01aeb4
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -3208,6 +3208,19 @@ function hook_token_info_alter(&$data) {
);
}
/**
* Alter the default country list.
*
* @param $countries
* The associative array of countries keyed by ISO 3166-1 country code.
*
* @see country_get_list()
* @see _country_get_predefined_list()
*/
function hook_countries_alter(&$countries) {
// Quebec has seceded from Canada. Add to country list.
$countries['QC'] = 'Quebec';
}
/**
* @} End of "addtogroup hooks".
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment