Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
forms system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2011 at 19:07 UTC
Updated:
7 Jun 2011 at 06:09 UTC
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..