function clientside_validation_library_alter in Clientside Validation 7
Same name and namespace in other branches
- 7.2 clientside_validation.module \clientside_validation_library_alter()
Implementation of hook_library_alter().
File
- ./
clientside_validation.module, line 1611 - Add client side validation to forms.
Code
function clientside_validation_library_alter(&$libraries, $module) {
if (variable_get('clientside_validation_override_jquery_form', 0)) {
// We are updating just the system module. For all other cases we return.
if ($module != 'system') {
return;
}
$path = drupal_get_path('module', 'clientside_validation');
// Replace jQuery Form plugin.
$libraries['jquery.form']['js']['misc/jquery.form.js']['data'] = $path . '/jquery.form.js';
$libraries['jquery.form']['version'] = '3.09';
}
}