function ds_extras_settings_validate in Display Suite 7
Same name and namespace in other branches
- 7.2 modules/ds_extras/includes/ds_extras.admin.inc \ds_extras_settings_validate()
Validate callback: Extras settings screen.
File
- modules/
ds_extras/ ds_extras.admin.inc, line 186 - Display Suite Extras administrative functions.
Code
function ds_extras_settings_validate($form, &$form_state) {
foreach ($form_state['values']['additional_settings'] as $tab => $value) {
if (is_array($value)) {
foreach ($value as $variable => $val) {
$form_state['values'][$variable] = $val;
}
}
unset($form_state['values']['additional_settings'][$tab]);
}
unset($form_state['values']['additional_settings']);
}