You are here

mandrill.install in Mandrill 6

Same filename and directory in other branches
  1. 8 mandrill.install
  2. 7.2 mandrill.install
  3. 7 mandrill.install

File

mandrill.install
View source
<?php

/**
 * Implements hook_uninstall().
 */
function mandrill_uninstall() {

  // delete other variables
  variable_del('mandrill_filter_format');
  variable_del('mandrill_from');
  variable_del('mandrill_status');
  variable_del('mandrill_test_address');
  variable_del('mandrill_test_body');
}

/**
 * Implements hook_disable().
 */
function mandrill_disable() {

  // reset to default mail system
  // TODO: if the 'mandrill' module is enabled, but not marked as the current smtp_library - this could cause problems
  variable_del('smtp_library');
  watchdog('mandrill', 'Mandrill has been disabled.');
}

Functions

Namesort descending Description
mandrill_disable Implements hook_disable().
mandrill_uninstall Implements hook_uninstall().