field_group #states does not working with using hook_field_group_build_pre_render_alter() I am trying to use #states on field_group at node add form.

From the search results I can find a couple of links which shows that hook_field_group_build_pre_render_alter() can make the magic but there is no luck for me.

I try to clear cache and dpm() some message inside the function. It seems the hook function has not been implemented at all.

These are the links I found.


Conditional fieldgroups/fieldsets in Drupal 7
hook_form_alter form state problems
After debugging I found that hook_field_group_build_pre_render_alter() is indeed working, but dpm() cannot work inside it at all.

For debugging, you can only use var_dump() or kpr() inside this hook function.