#717666 by heyrocker: Document hook_countries_alter().

merge-requests/26/head
Angie Byron 2010-02-18 01:40:46 +00:00
parent 8d01aeb428
commit c1ca8a08da
1 changed files with 13 additions and 0 deletions

View File

@ -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".
*/