function _ds_field_group_field_ui_fix_notices in Display Suite 8.4
Same name and namespace in other branches
- 8.2 includes/field_ui.inc \_ds_field_group_field_ui_fix_notices()
- 8.3 includes/field_ui.inc \_ds_field_group_field_ui_fix_notices()
- 7.2 includes/ds.field_ui.inc \_ds_field_group_field_ui_fix_notices()
- 7 ds.field_ui.inc \_ds_field_group_field_ui_fix_notices()
Add fake field group value in.
Parameters
array $form: The actual form.
\Drupal\Core\Form\FormStateInterface $form_state: The form state of the form.
1 string reference to '_ds_field_group_field_ui_fix_notices'
- ds_field_ui_fields_layouts in includes/
field_ui.inc - Adds the Display Suite fields and layouts to the form.
File
- includes/
field_ui.inc, line 721 - Field UI functions for Display Suite.
Code
function _ds_field_group_field_ui_fix_notices(array $form, FormStateInterface $form_state) {
$field_group = [
'group_name' => '',
'label' => '',
];
$fields = $form_state
->getValue('fields');
$fields['_add_new_group'] = $field_group;
$form_state
->setValue('fields', $fields);
}