You are here

function mailchimp_uninstall in Mailchimp 7.4

Same name and namespace in other branches
  1. 8 mailchimp.install \mailchimp_uninstall()
  2. 6.2 mailchimp.install \mailchimp_uninstall()
  3. 7.5 mailchimp.install \mailchimp_uninstall()
  4. 7 mailchimp.install \mailchimp_uninstall()
  5. 7.2 mailchimp.install \mailchimp_uninstall()
  6. 7.3 mailchimp.install \mailchimp_uninstall()
  7. 2.x mailchimp.install \mailchimp_uninstall()

Implements hook_uninstall().

File

./mailchimp.install, line 83
Install, update and uninstall functions for the mailchimp module.

Code

function mailchimp_uninstall() {
  variable_del('mailchimp_api_key');
  variable_del('mailchimp_batch_limit');
  $queue = DrupalQueue::get(MAILCHIMP_QUEUE_CRON);
  $queue
    ->deleteQueue();
  $queue = DrupalQueue::get(MAILCHIMP_BATCH_QUEUE_CRON);
  $queue
    ->deleteQueue();
}