diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-18 01:40:46 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-18 01:40:46 +0000 |
commit | c1ca8a08da8edfa0c7710e48169d8974d934978a (patch) | |
tree | 1bd57563d4cb2c2ad4d1853de775e7a5bc21c932 | |
parent | 8d01aeb4287be61195a43305e34f379086914f5d (diff) | |
download | brdo-c1ca8a08da8edfa0c7710e48169d8974d934978a.tar.gz brdo-c1ca8a08da8edfa0c7710e48169d8974d934978a.tar.bz2 |
#717666 by heyrocker: Document hook_countries_alter().
-rw-r--r-- | modules/system/system.api.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 153ddca83..1c124711d 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -3209,5 +3209,18 @@ 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". */ |