function print_mail_uninstall in Printer, email and PDF versions 5.4
Same name and namespace in other branches
- 5.3 print_mail/print_mail.install \print_mail_uninstall()
- 6 print_mail/print_mail.install \print_mail_uninstall()
- 7.2 print_mail/print_mail.install \print_mail_uninstall()
- 7 print_mail/print_mail.install \print_mail_uninstall()
- 5.x print_mail/print_mail.install \print_mail_uninstall()
Implementation of hook_uninstall().
File
- print_mail/
print_mail.install, line 59 - Install file of the print_mail module
Code
function print_mail_uninstall() {
db_query('DROP TABLE {print_mail_node_conf}');
db_query('DROP TABLE {print_mail_page_counter}');
variable_del('print_mail_settings');
variable_del('print_mail_show_link');
variable_del('print_mail_link_pos');
variable_del('print_mail_link_teaser');
variable_del('print_mail_node_link_visibility');
variable_del('print_mail_node_link_pages');
variable_del('print_mail_link_class');
variable_del('print_mail_sys_link_visibility');
variable_del('print_mail_sys_link_pages');
variable_del('print_mail_book_link');
variable_del('print_mail_hourly_threshold');
variable_del('print_mail_teaser_default');
variable_del('print_mail_teaser_choice');
variable_del('print_mail_link_text');
variable_del('print_mail_link_use_alias');
variable_del('print_mail_text_confirmation');
variable_del('print_mail_text_message');
variable_del('print_mail_text_subject');
variable_del('print_mail_text_content');
variable_del('print_mail_job_queue');
$settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'print\\_mail\\_display\\_%'");
while ($variable = db_fetch_object($settings)) {
variable_del($variable->name);
}
}