When the order of calling the implementation of a particular hook by different modules matter, you can change the weight of modules by tweaking system database table.
But it looks like I'm in a more difficult situation involving interaction of the field_group, and the clientside_validation modules with my custom module.
I use hook_field_group_build_pre_render_alter()
provided by the field_group module to add some '#states'
attributes to a field group form element.
The states I add change the '#required'
attribute, besides other things. This form relies on a clientside_validation module suite to provide a JavaScript validation.
There is a brand-new module, clientside_validation_states which perfectly fits me, but I ran into the difficulties trying to make use of it. clientside_validation_states uses #after_build
, which should be called after my code, but hook_field_group_build_pre_render_alter()
is called in field_group by using a '#pre_render' FAPI attribute.
This together results in an inverted calling order. Do you have any idea on how to fix this?