function field_group_form_pre_render in Field Group 8
Same name and namespace in other branches
- 8.3 field_group.module \field_group_form_pre_render()
- 7.2 field_group.module \field_group_form_pre_render()
- 7 field_group.module \field_group_form_pre_render()
Pre render callback for rendering groups.
Parameters
$element Form that is being rendered.:
See also
field_group_field_attach_form
2 string references to 'field_group_form_pre_render'
- field_group_form_alter in ./
field_group.module - Implements hook_form_alter().
- field_group_inline_entity_form_entity_form_alter in ./
field_group.module - Implements hook_inline_entity_form_entity_form_alter().
File
- ./
field_group.module, line 257 - Allows administrators to attach custom fields to fieldable types.
Code
function field_group_form_pre_render($element) {
if (empty($element['#field_group_form_pre_render'])) {
$element['#field_group_form_pre_render'] = TRUE;
field_group_build_entity_groups($element, 'form');
}
return $element;
}