function print_mail_uninstall in Printer, email and PDF versions 7.2
Same name and namespace in other branches
- 5.4 print_mail/print_mail.install \print_mail_uninstall()
- 5.3 print_mail/print_mail.install \print_mail_uninstall()
- 6 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()
Implements hook_uninstall().
File
- print_mail/
print_mail.install, line 65 - Install, update and uninstall functions for the print_mail module.
Code
function print_mail_uninstall() {
variable_del('print_mail_display_sys_urllist');
variable_del('print_mail_hourly_threshold');
variable_del('print_mail_job_queue');
variable_del('print_mail_link_text');
variable_del('print_mail_link_text_enabled');
variable_del('print_mail_send_option_default');
variable_del('print_mail_teaser_choice');
variable_del('print_mail_teaser_default');
variable_del('print_mail_use_reply_to');
variable_del('print_mail_user_recipients');
variable_del('print_mail_book_link');
variable_del('print_mail_link_class');
variable_del('print_mail_link_pos');
variable_del('print_mail_link_teaser');
variable_del('print_mail_link_use_alias');
variable_del('print_mail_show_link');
variable_del('print_mail_sys_link_pages');
variable_del('print_mail_sys_link_visibility');
$settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'print\\_mail\\_display\\_%'");
foreach ($settings as $variable) {
variable_del($variable->name);
}
}