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
d2bdfd8e
Commit
d2bdfd8e
authored
Feb 03, 2014
by
git
Committed by
Peter Droogmans
Feb 03, 2014
Browse files
Issue #2187667 by Kevin Rogers: Update from 6.x-1.32 to 7.x-1.37 causes fatal errors.
parent
60c899e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
1 deletion
+49
-1
clientside_validation.install
clientside_validation.install
+49
-1
No files found.
clientside_validation.install
View file @
d2bdfd8e
...
...
@@ -119,7 +119,54 @@ function clientside_validation_update_7100() {
*/
function
clientside_validation_update_7101
()
{
if
(
!
db_table_exists
(
'clientside_validation_settings'
))
{
db_create_table
(
'clientside_validation_settings'
,
drupal_get_schema
(
'clientside_validation_settings'
,
TRUE
));
$schema
[
'clientside_validation_settings'
]
=
array
(
'description'
=>
'Table for storing Clientside Validation Settings'
,
'fields'
=>
array
(
'cvsid'
=>
array
(
'description'
=>
'The primary identifier for the clientside validation settings'
,
'type'
=>
'serial'
,
'unsigned'
=>
TRUE
,
'not null'
=>
TRUE
,
),
'type'
=>
array
(
'description'
=>
'The type of setting: content_type, webform or custom'
,
'type'
=>
'varchar'
,
'length'
=>
32
,
'not null'
=>
TRUE
,
'default'
=>
''
,
),
'status'
=>
array
(
'description'
=>
'The status for this form. 1 for enabled (validate), 0 for disabled (don\'t validate)'
,
'type'
=>
'int'
,
'not null'
=>
TRUE
,
'default'
=>
0
,
'size'
=>
'tiny'
,
),
'form_id'
=>
array
(
'description'
=>
'The form id these settings apply to'
,
'type'
=>
'varchar'
,
'length'
=>
255
,
'not null'
=>
TRUE
,
'default'
=>
''
,
),
'settings'
=>
array
(
'type'
=>
'blob'
,
'not null'
=>
TRUE
,
'size'
=>
'big'
,
'translatable'
=>
TRUE
,
),
),
'indexes'
=>
array
(
'clientside_validation_settings_form_id'
=>
array
(
'form_id'
),
'clientside_validation_settings_type'
=>
array
(
'type'
),
'clientside_validation_settings_form_id_type'
=>
array
(
'form_id'
,
'type'
),
),
'unique keys'
=>
array
(
'cvs_form_id'
=>
array
(
'form_id'
),
),
'primary key'
=>
array
(
'cvsid'
),
);
db_create_table
(
'clientside_validation_settings'
,
$schema
[
'clientside_validation_settings'
]);
}
// @TODO: Convert old settings to new
// 1. fill in clientside_validation_default_settings
...
...
@@ -276,6 +323,7 @@ function clientside_validation_update_7103() {
// Nothing to do here.
return
;
}
module_load_include
(
'module'
,
'clientside_validation'
,
'clientside_validation'
);
$default_settings
=
clientside_validation_settings_load_defaults
();
if
(
!
isset
(
$default_settings
[
'validate_options'
][
'captcha'
]))
{
$default_settings
[
'validate_options'
][
'captcha'
]
=
1
;
...
...
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