You are here

function mandrill_disable in Mandrill 7

Same name and namespace in other branches
  1. 6 mandrill.install \mandrill_disable()
  2. 7.2 mandrill.install \mandrill_disable()

Implements hook_disable().

File

./mandrill.install, line 39
Install, update and uninstall functions for the mandrill module.

Code

function mandrill_disable() {

  // Tell mailsystem to remove mandrill and restore to defaults:
  mailsystem_clear(array(
    'mandrill_test' => 'MandrillMailSystem',
  ));
  watchdog('mandrill', 'Mandrill has been disabled.');
}