function field_group_conditional_fields in Field Group 8.3
Implements hook_conditional_fields().
File
- ./
field_group.module, line 376 - Allows administrators to attach field groups.
Code
function field_group_conditional_fields($entity_type, $bundle_name) {
$fields = [];
$groups = field_group_info_groups($entity_type, $bundle_name, 'form', 'default');
foreach ($groups as $name => $group) {
$fields[$name] = $group->label;
}
return $fields;
}