Field Group¶
The theme_view_display_field_group sub-module gives an override field groups of its own. Without
it, the groups of the core display apply to an override's fields, because Field Group reads groups
from the core display by entity type, bundle and view mode.
Requires Field Group 4.x.
What works¶

- Add field group. The action appears on the edit page of an override and saves the group to the override.
- Arrange. Parent, region, weight, label and format settings are edited in the field table, as on the core page.
- Delete. The delete link of a group removes it from the override only.
- Render. The groups of the override replace the groups of the core display for the theme.
- Copy. A new override starts with a copy of the groups of the display it was copied from. After that, the two are independent.
The clone-from-another-display option of Field Group is not offered on an override.
Notes¶
The core display keeps its groups. If you remove a group from an override, the theme renders the fields without it, even though the core display still has the group.
Field Group offers no hook to change where it reads groups, so this sub-module relies on two things
inside Field Group: the #fieldgroups key it adds to the render array, and the form functions in its
includes/field_ui.inc. A change to either in Field Group can break the sub-module. The kernel tests
cover the render side.