function ds_field_ui_layouts_validate in Display Suite 7.2
Same name and namespace in other branches
- 8.4 includes/field_ui.inc \ds_field_ui_layouts_validate()
- 8.2 includes/field_ui.inc \ds_field_ui_layouts_validate()
- 8.3 includes/field_ui.inc \ds_field_ui_layouts_validate()
- 7 ds.field_ui.inc \ds_field_ui_layouts_validate()
Move the view modes so Field UI can handle them.
1 string reference to 'ds_field_ui_layouts_validate'
- _ds_field_ui_table_layouts in includes/
ds.field_ui.inc - Add the layouts fieldset on the Field UI screen.
File
- includes/
ds.field_ui.inc, line 435 - Field UI functions for Display Suite.
Code
function ds_field_ui_layouts_validate($form, &$form_state) {
if (isset($form_state['values']['additional_settings']['modes']['view_modes_custom'])) {
$form_state['values']['view_modes_custom'] = $form_state['values']['additional_settings']['modes']['view_modes_custom'];
}
}