Commit ed386396 authored by Jelle Sebreghts's avatar Jelle Sebreghts
Browse files

Issue #1451806 by Olivaw: Fixed Clientside Validation configuration options...

Issue #1451806 by Olivaw: Fixed Clientside Validation configuration options are not working correctly.
parent 5d85ae9f
......@@ -331,6 +331,23 @@ function clientside_validation_admin_settings() {
),
),
);
$form['#submit'] = array('clientside_validation_admin_settings_submit');
$form = system_settings_form($form);
return $form;
}
return system_settings_form($form);
function clientside_validation_admin_settings_submit($form, &$form_state){
$exceptions = array(
'clientside_validation_error_placement_jquery',
'clientside_validation_error_placement_top_of_form',
'clientside_validation_error_placement_before_label',
'clientside_validation_error_placement_after_label',
'clientside_validation_error_placement_before_input',
'clientside_validation_error_placement_after_input',
'clientside_validation_error_placement_custom_function',
'clientside_validation_include_hidden',
);
foreach ($exceptions as $exception) {
$form_state['values'][$exception] = str_replace('-', '_', $form_state['values'][$exception]);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment