You are here

function print_pdf_uninstall in Printer, email and PDF versions 5.4

Same name and namespace in other branches
  1. 5.3 print_pdf/print_pdf.install \print_pdf_uninstall()
  2. 6 print_pdf/print_pdf.install \print_pdf_uninstall()
  3. 7.2 print_pdf/print_pdf.install \print_pdf_uninstall()
  4. 7 print_pdf/print_pdf.install \print_pdf_uninstall()
  5. 5.x print_pdf/print_pdf.install \print_pdf_uninstall()

Implementation of hook_uninstall().

File

print_pdf/print_pdf.install, line 55
Install file of the print_pdf module

Code

function print_pdf_uninstall() {
  db_query('DROP TABLE {print_pdf_node_conf}');
  db_query('DROP TABLE {print_pdf_page_counter}');
  variable_del('print_pdf_settings');
  variable_del('print_pdf_show_link');
  variable_del('print_pdf_link_pos');
  variable_del('print_pdf_link_teaser');
  variable_del('print_pdf_node_link_visibility');
  variable_del('print_pdf_node_link_pages');
  variable_del('print_pdf_link_class');
  variable_del('print_pdf_sys_link_visibility');
  variable_del('print_pdf_sys_link_pages');
  variable_del('print_pdf_book_link');
  variable_del('print_pdf_pdf_tool');
  variable_del('print_pdf_content_disposition');
  variable_del('print_pdf_paper_size');
  variable_del('print_pdf_page_orientation');
  variable_del('print_pdf_font_family');
  variable_del('print_pdf_font_size');
  variable_del('print_pdf_link_text');
  variable_del('print_pdf_link_use_alias');
  variable_del('print_pdf_filename');
  variable_del('print_pdf_autoconfig');
  variable_del('print_pdf_dompdf_unicode');
  variable_del('print_pdf_wkhtmltopdf_options');
  $settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'print\\_pdf\\_display\\_%'");
  while ($variable = db_fetch_object($settings)) {
    variable_del($variable->name);
  }
}