function print_pdf_uninstall in Printer, email and PDF versions 5.x
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()
- 7 print_pdf/print_pdf.install \print_pdf_uninstall()
Implementation of hook_uninstall().
File
- print_pdf/
print_pdf.install, line 23 - Install file of the print_pdf module
Code
function print_pdf_uninstall() {
drupal_uninstall_schema('print_pdf');
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);
}
}