You are here

function hook_field_group_form_process in Field Group 8.3

Process the field group.

Parameters

array $element: The element being processed.

$group: The group info.

$complete_form: The complete form.

1 function implements hook_field_group_form_process()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

field_group_field_group_form_process in ./field_group.module
Implements hook_field_group_form_process().
1 invocation of hook_field_group_form_process()
FormatterHelper::formProcess in src/FormatterHelper.php
Process callback for field groups.

File

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

Code

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