function clientside_validation_update_7105 in Clientside Validation 7
Same name and namespace in other branches
- 7.2 clientside_validation.install \clientside_validation_update_7105()
Disable clientside validation for views (views ajax path changed).
File
- ./
clientside_validation.install, line 350
Code
function clientside_validation_update_7105() {
$paths = explode("\n", variable_get('clientside_validation_path_list', ''));
$filter_type = variable_get('clientside_validation_filter_paths', CLIENTSIDE_VALIDATION_EXCLUDE_PATHS);
if (array_search('admin/structure/views/*', $paths) === FALSE && $filter_type == CLIENTSIDE_VALIDATION_EXCLUDE_PATHS) {
$paths[] = 'admin/structure/views/*';
}
variable_set('clientside_validation_path_list', implode("\n", $paths));
}