Problem/Motivation
The function signature of #process is (&$element, &$form_state, &$form). This allows implementing modules to alter even the complete form structure.
field_group_form_process() currently takes the first parameter only and routes it to hook_field_group_form_process_build_alter() so there is no way to access the form state in an implementation of this hook.
Proposed resolution
Extend the signature of field_group_form_process() with $form_state and $form and route both parameters to hook_field_group_form_process_build_alter().
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | field_group-process_signature-2985485-4.patch | 1.85 KB | stborchert |
Comments
Comment #2
stborchertComment #3
stborchertupdated patch
Comment #4
stborchertGnarf ... wrong changes committed :/
Comment #6
nils.destoop commentedSounds correct. I committed it to dev