Commit c1ca8a08 authored by webchick's avatar webchick
Browse files

#717666 by heyrocker: Document hook_countries_alter().

parent 8d01aeb4
......@@ -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".
*/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment