You are here

function print_mail_uninstall in Printer, email and PDF versions 7

Same name and namespace in other branches
  1. 5.4 print_mail/print_mail.install \print_mail_uninstall()
  2. 5.3 print_mail/print_mail.install \print_mail_uninstall()
  3. 6 print_mail/print_mail.install \print_mail_uninstall()
  4. 7.2 print_mail/print_mail.install \print_mail_uninstall()
  5. 5.x print_mail/print_mail.install \print_mail_uninstall()

Implements hook_uninstall().

File

print_mail/print_mail.install, line 42
Install, update and uninstall functions for the print_mail module.

Code

function print_mail_uninstall() {
  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_use_reply_to');
  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_title');
  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');
  variable_del('print_mail_display_sys_urllist');
  $settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'print\\_mail\\_display\\_%'");
  foreach ($settings as $variable) {
    variable_del($variable->name);
  }
}