You are here

function sparkpost_disable in Sparkpost email 7

Same name and namespace in other branches
  1. 7.2 sparkpost.install \sparkpost_disable()

Implements hook_disable().

File

./sparkpost.install, line 52
Install, update and uninstall functions for the sparkpost module.

Code

function sparkpost_disable() {

  // Tell mailsystem to remove sparkpost and restore to defaults:
  mailsystem_clear(array(
    'sparkpost_test' => 'SparkpostMailSystem',
  ));
  watchdog('sparkpost', 'Sparkpost has been disabled.');
}