Skip to content
Snippets Groups Projects
Commit c16d9ca3 authored by lkmorlan's avatar lkmorlan Committed by Liam Morland
Browse files

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
...@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment