Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
webform_encrypt
Commits
4aa06c96
Commit
4aa06c96
authored
Jul 28, 2012
by
Jake Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small change to uninstall query.
parent
7d99238a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
webform_encrypt.install
webform_encrypt.install
+2
-3
No files found.
webform_encrypt.install
View file @
4aa06c96
...
...
@@ -23,12 +23,11 @@ function webform_encrypt_uninstall() {
// Decrypt all encrypted form values.
$components
=
array
();
$results
=
db_query
(
'SELECT nid, cid, extra FROM {webform_component}'
)
->
fetchAll
();
$results
=
db_query
(
'SELECT nid, cid, extra FROM {webform_component}'
)
->
fetchAll
();
foreach
(
$results
as
$row
)
{
$components
[
$row
->
nid
.
':'
.
$row
->
cid
]
=
unserialize
(
$row
->
extra
);
}
$data
=
db_query
(
'SELECT nid, sid, cid, data FROM {webform_submitted_data}'
);
$data
=
db_query
(
'SELECT nid, sid, cid, data FROM {webform_submitted_data}'
)
->
fetchAll
()
;
foreach
(
$data
as
$row
)
{
$key
=
$row
->
nid
.
':'
.
$row
->
cid
;
if
(
!
empty
(
$components
[
$key
][
'encrypt'
])
&&
is_array
(
@
unserialize
(
$row
->
data
)))
{
...
...
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