I have a problem where newly created groups that have been created via the UI are not accessible via hook_form_alter.

--

I've a content type where fields have been arranged (for node editing) using a horizontal tabs fieldset. I need to create two new tabs programmatically and insert a views block in each.

I've attempted to create these extra tabs using hook_form_alter - but the parent group (created via the UI) isn't visible in the $form array. Modifications can successfully be made to the standard 'additional_settings' group, as this is visible.

I've tried to alter the weight of my custom module so it fires after field_group and I've also tried to use hook_form_FORMID_alter(), and I've also tried to use $form['#after_build'][] to add a callback function that's run after the form has been built but none of these solutions have allowed me to modify the field group fieldsets/groups.

Any advice greatly appreciated.

Luke

Comments

lukus’s picture

Status: Active » Closed (works as designed)

hook_field_group_build_pre_render_alter(&$element)

This provided the solution I needed ..

More info here: http://drupal.org/node/1017962

lukus’s picture

Issue summary: View changes

spelling