function clientside_validation_ajax_render_alter in Clientside Validation 7
File
- ./
clientside_validation.module, line 52 - Add client side validation to forms.
Code
function clientside_validation_ajax_render_alter(&$commands) {
$cv_settings =& drupal_static('clientside_validation_settings', array());
foreach ($commands as $delta => $command) {
if (isset($command['command']) && $command['command'] == 'settings') {
$commands[$delta]['settings'] = drupal_array_merge_deep($command['settings'], $cv_settings);
}
}
}