function ds_extras_vd_field_ui_submit in Display Suite 8.3
Same name and namespace in other branches
- 8.2 modules/ds_extras/ds_extras.module \ds_extras_vd_field_ui_submit()
- 7.2 modules/ds_extras/includes/ds_extras.admin.inc \ds_extras_vd_field_ui_submit()
- 7 modules/ds_extras/ds_extras.admin.inc \ds_extras_vd_field_ui_submit()
Submit callback after Field UI submission of a views display.
File
- modules/
ds_extras/ ds_extras.module, line 124 - Display Suite extras main functions.
Code
function ds_extras_vd_field_ui_submit($form, FormStateInterface $form_state) {
// Add the 'type' key to the extra title key so we can ditch the notice.
$form_state
->setValue('fields', [
'title' => [
'type' => 'hidden',
],
]);
}