Commit 08b2f5d4 authored by Jelle Sebreghts's avatar Jelle Sebreghts
Browse files

Issue #1795502 by torotil: Fixed IFE breaks views_ui().

parent e33f4958
......@@ -66,7 +66,7 @@ function clientside_validation_general_settings_form($form_id, $form_state) {
$form['clientside_validation_pages']['clientside_validation_path_list'] = array(
'#type' => 'textarea',
'#default_value' => variable_get('clientside_validation_path_list', ''),
'#default_value' => variable_get('clientside_validation_path_list', 'admin/structure/views/view/*'),
'#title' => t("Enter paths"),
'#description' => t("Enter one page per line as Drupal paths.
The '*' character is a wildcard. Example paths are %blog for the blog page and
......
......@@ -255,3 +255,14 @@ function clientside_validation_update_7103() {
}
variable_set('clientside_validation_default_settings', $default_settings);
}
/**
* Disable clientside validation for views.
*/
function clientside_validation_update_7104() {
$paths = explode("\n", variable_get('clientside_validation_path_list', ''));
if (array_search('admin/structure/views/view/*', $paths) === FALSE) {
$paths[] = 'admin/structure/views/view/*';
}
variable_set('clientside_validation_path_list', implode("\n", $paths));
}
\ No newline at end of file
Supports Markdown
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