function ds_field_ui_layouts_validate in Display Suite 7
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.2 includes/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 ./
ds.field_ui.inc - Add the layouts fieldset on the Field UI screen.
File
- ./
ds.field_ui.inc, line 328 - 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'];
}
}