Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
c1ca8a08
Commit
c1ca8a08
authored
Feb 18, 2010
by
Angie Byron
Browse files
#717666
by heyrocker: Document hook_countries_alter().
parent
8d01aeb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/system/system.api.php
View file @
c1ca8a08
...
...
@@ -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".
*/
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment