function field_group_element_info_alter in Field Group 8.3
Implements hook_element_info_alter().
File
- ./
field_group.module, line 169 - Allows administrators to attach field groups.
Code
function field_group_element_info_alter(array &$info) {
// Core does not support #group options on vertical tabs. Add support for it.
if (isset($info['vertical_tabs'])) {
if (!isset($info['vertical_tabs']['#process'])) {
$info['vertical_tabs']['#process'] = [];
}
if (!isset($info['vertical_tabs']['#pre_render'])) {
$info['vertical_tabs']['#pre_render'] = [];
}
$info['vertical_tabs']['#process'][] = [
VerticalTabs::class,
'processGroup',
];
$info['vertical_tabs']['#pre_render'][] = [
VerticalTabs::class,
'preRenderGroup',
];
}
}