summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-18 01:40:46 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-18 01:40:46 +0000
commitc1ca8a08da8edfa0c7710e48169d8974d934978a (patch)
tree1bd57563d4cb2c2ad4d1853de775e7a5bc21c932 /modules/system
parent8d01aeb4287be61195a43305e34f379086914f5d (diff)
downloadbrdo-c1ca8a08da8edfa0c7710e48169d8974d934978a.tar.gz
brdo-c1ca8a08da8edfa0c7710e48169d8974d934978a.tar.bz2
#717666 by heyrocker: Document hook_countries_alter().
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.api.php13
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".
*/