Commit 6e2c96f2 authored by jelles's avatar jelles
Browse files

Issue #2112073 by jonloh: Dev version sort of breaking Views UI.

parent 2c3b3bfa
......@@ -96,6 +96,14 @@ function clientside_validation_uninstall() {
}
}
/**
* Implements hook_install().
*/
function clientside_validation_install() {
$paths = array('admin/structure/views/*');
variable_set('clientside_validation_path_list', implode("\n", $paths));
}
/**
* Clientside validation was split up into form validation, webform validation and fapi validation.
* This update enables the form and webform clientside validation module. It does not enable the
......@@ -284,4 +292,16 @@ function clientside_validation_update_7104() {
$paths[] = 'admin/structure/views/view/*';
}
variable_set('clientside_validation_path_list', implode("\n", $paths));
}
\ No newline at end of file
}
/**
* Disable clientside validation for views (views ajax path changed).
*/
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));
}
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