The title says it all. hook_form_form_id_alter does not honor hook order changes by implementing hook_module_implements_alter by a module.
However, hook_form_alter does so.
The attached code contains 3 simple modules. Module 1 exposes 3 forms, module 2 and module 3 alter those forms. Module 1 tries to change the order of hooks (hook_form_form_id_alter) but it does not work. However if Module 2 and Module 3 implement hook_form_alter, then Module1 can change the order of hooks but that changes it for all forms.
| Comment | File | Size | Author |
|---|---|---|---|
| modules.zip | 2.52 KB | r_honey |
Comments
Comment #1
catchDuplicate of #1123140: drupal_alter does not always obey module_implements.
Comment #2
r_honey commentedHmmm... I searched before posting, somehow missed that issue..