function print_pdf_uninstall in Printer, email and PDF versions 7
Same name and namespace in other branches
- 5.4 print_pdf/print_pdf.install \print_pdf_uninstall()
- 5.3 print_pdf/print_pdf.install \print_pdf_uninstall()
- 6 print_pdf/print_pdf.install \print_pdf_uninstall()
- 7.2 print_pdf/print_pdf.install \print_pdf_uninstall()
- 5.x print_pdf/print_pdf.install \print_pdf_uninstall()
Implements hook_uninstall().
File
- print_pdf/
print_pdf.install, line 29 - Install, update and uninstall functions for the print_pdf module.
Code
function print_pdf_uninstall() {
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_images_via_file');
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');
variable_del('print_pdf_display_sys_urllist');
$settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'print\\_pdf\\_display\\_%'");
foreach ($settings as $variable) {
variable_del($variable->name);
}
}