diff options
author | Dries <dries@buytaert.net> | 2011-11-21 22:18:43 -0500 |
---|---|---|
committer | Dries <dries@buytaert.net> | 2011-11-21 22:18:43 -0500 |
commit | b96a83b4a9a0d9fb77a4891592ea0c0a9a75ce60 (patch) | |
tree | 37afa4657a564af02e095126ecf8017a761f882c /modules/system/system.api.php | |
parent | d8b517295c4159e5b3aa40ac5d0931c6ce491866 (diff) | |
download | brdo-b96a83b4a9a0d9fb77a4891592ea0c0a9a75ce60.tar.gz brdo-b96a83b4a9a0d9fb77a4891592ea0c0a9a75ce60.tar.bz2 |
- Patch #765860 by effulgentsia, dww, dereine, mikey_p, xjm, sun, sven.lauer: drupal_alter() fails to order modules correctly in some cases.
Diffstat (limited to 'modules/system/system.api.php')
-rw-r--r-- | modules/system/system.api.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 1e8d35a78..7ffdae4ea 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -1877,6 +1877,15 @@ function hook_mail_alter(&$message) { * hook in order to reorder the implementing modules, which are otherwise * ordered by the module's system weight. * + * Note that hooks invoked using drupal_alter() can have multiple variations + * (such as hook_form_alter() and hook_form_FORM_ID_alter()). drupal_alter() + * will call all such variants defined by a single module in turn. For the + * purposes of hook_module_implements_alter(), these variants are treated as + * a single hook. Thus, to ensure that your implementation of + * hook_form_FORM_ID_alter() is called at the right time, you will have to + * have to change the order of hook_form_alter() implementation in + * hook_module_implements_alter(). + * * @param $implementations * An array keyed by the module's name. The value of each item corresponds * to a $group, which is usually FALSE, unless the implementation is in a |