You are here

function field_group_conditional_fields_children in Field Group 8.3

Implements hook_conditional_fields_children().

File

./field_group.module, line 388
Allows administrators to attach field groups.

Code

function field_group_conditional_fields_children($entity_type, $bundle_name) {
  $groups = [];
  $group_info = field_group_info_groups($entity_type, $bundle_name, 'form', 'default');
  foreach ($group_info as $name => $info) {
    $groups[$name] = $info->children;
  }
  return $groups;
}