You are here

function hook_field_group_form_process_alter in Field Group 8.3

Alter the processed build of the group.

Parameters

array $element: The element being processed.

$group: The group info.

$complete_form: The complete form.

File

./field_group.api.php, line 105
Hooks for the field_group module.

Code

function hook_field_group_form_process_alter(array &$element, &$group, &$complete_form) {
  $element['#states'] = [
    'visible' => [
      ':input[name="field_are_you_ok"]' => [
        'value' => 'yes',
      ],
    ],
  ];
}