Commit 6a70c829 authored by Jelle's avatar Jelle
Browse files

Issue #1966832 by Martijn Houtman: Fixed Incorrect use of hook_js_alter().

parent 25bc4ea9
......@@ -30,7 +30,7 @@ function clientside_validation_js_alter(&$javascript) {
$clientside_validation_settings['clientsideValidation']['general']['months'][t(date('F', $date))] = $month_number;
$clientside_validation_settings['clientsideValidation']['general']['months'][t(date('M', $date))] = $month_number;
}
$javascript = drupal_add_js($clientside_validation_settings, 'setting');
$javascript['settings']['data'][] = $clientside_validation_settings;
}
/**
......
Markdown is supported
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