You are here

function fillpdf_uninstall in FillPDF 7

Same name and namespace in other branches
  1. 5 fillpdf.install \fillpdf_uninstall()
  2. 6 fillpdf.install \fillpdf_uninstall()
  3. 7.2 fillpdf.install \fillpdf_uninstall()

Implements hook_uninstall().

File

./fillpdf.install, line 171
Install.

Code

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(
    'fillpdf_local_service_endpoint',
    'fillpdf_scheme',
    'fillpdf_service',
    'fillpdf_test_last_merge_metadata',
    'fillpdf_uc_order_initialized',
  );
  foreach ($variables as $variable) {
    variable_del($variable);
  }
}