You are here

amazon_ses.install in Amazon SES 7

Same filename and directory in other branches
  1. 6 amazon_ses.install
  2. 7.2 amazon_ses.install
  3. 2.0.x amazon_ses.install

The installation file for amazon_mail_service module.

File

amazon_ses.install
View source
<?php

/**
 * @file
 * The installation file for amazon_mail_service module.
 */

/**
 * Implements hook_enable().
 */
function amazon_ses_enable() {
  $mail_modes = variable_get('mail_system', array(
    'default-system' => 'DefaultMailSystem',
  ));
  $mail_modes['default-system'] = 'AmazonSesSystem';
  variable_set('mail_system', $mail_modes);
}

/**
 * Implements hook_disable().
 */
function amazon_ses_disable() {
  $mail_modes = variable_get('mail_system');
  $mail_modes['default-system'] = 'DefaultMailSystem';
  variable_set('mail_system', $mail_modes);
}

/**
 * Implements hook_uninstall();
 */
function amazon_ses_uninstall() {
  variable_del('amazon_ses_region');
}

Functions