You are here

function newsletter_uninstall in Newsletter 7.2

Same name and namespace in other branches
  1. 7 newsletter.install \newsletter_uninstall()

Implements hook_uninstall().

File

./newsletter.install, line 19
Contains install,uninstall and update functions for Newsletter module.

Code

function newsletter_uninstall() {
  db_query("DELETE FROM {variable} WHERE name LIKE 'newsletter_%'");
  $mail_modes = variable_get('mail_system');
  unset($mail_modes['newsletter']);
  variable_set('mail_system', $mail_modes);
}