Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
clientside_validation
Commits
6e2c96f2
Commit
6e2c96f2
authored
Nov 07, 2013
by
jelles
Browse files
Issue #2112073 by jonloh: Dev version sort of breaking Views UI.
parent
2c3b3bfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
clientside_validation.install
clientside_validation.install
+21
-1
No files found.
clientside_validation.install
View file @
6e2c96f2
...
...
@@ -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
));
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment