You are here

function sparkpost_disable in Sparkpost email 7.2

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

Implements hook_disable().

File

./sparkpost.install, line 53
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.');
}