Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fillpdf
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
fillpdf
Commits
c16d9ca3
Commit
c16d9ca3
authored
6 years ago
by
lkmorlan
Committed by
Liam Morland
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue #3041624 by Liam Morland: Delete all PDF templates when uninstalling
parent
9646d4f9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fillpdf.install
+9
-0
9 additions, 0 deletions
fillpdf.install
with
9 additions
and
0 deletions
fillpdf.install
+
9
−
0
View file @
c16d9ca3
...
@@ -168,6 +168,15 @@ function _fillpdf_add_publish_completed_orders_permission() {
...
@@ -168,6 +168,15 @@ function _fillpdf_add_publish_completed_orders_permission() {
* Implements hook_uninstall().
* Implements hook_uninstall().
*/
*/
function
fillpdf_uninstall
()
{
function
fillpdf_uninstall
()
{
require_once
__DIR__
.
'/fillpdf.module'
;
$result
=
db_select
(
'fillpdf_forms'
,
'ff'
)
->
fields
(
'ff'
,
array
(
'fid'
))
->
execute
();
while
(
$fid
=
$result
->
fetchColumn
())
{
fillpdf_form_delete_file
(
$fid
);
}
$variables
=
array
(
$variables
=
array
(
'fillpdf_local_service_endpoint'
,
'fillpdf_local_service_endpoint'
,
'fillpdf_scheme'
,
'fillpdf_scheme'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment