You are here

function ds_field_ui_change_layout_validate in Display Suite 7.2

Form validation handler for _ds_field_ui_table_layouts_preview().

1 string reference to 'ds_field_ui_change_layout_validate'
_ds_field_ui_table_layouts_preview in includes/ds.field_ui.inc
Add the layout previews to the Field UI screen.

File

includes/ds.field_ui.inc, line 1999
Field UI functions for Display Suite.

Code

function ds_field_ui_change_layout_validate(&$form, &$form_state) {
  $key1 = array_search('ds_field_ui_layouts_save', $form['#submit']);
  $key2 = array_search('ds_field_ui_fields_save', $form['#submit']);
  unset($form['#submit'][$key1]);
  unset($form['#submit'][$key2]);
}