You are here

mailsystem.install in Mail System 6

Same filename and directory in other branches
  1. 6.2 mailsystem.install
  2. 7.3 mailsystem.install

Sets/deletes the 'smtp_library' variable as mailsystem is enabled/disabled.

Also deletes the 'mail_system' variable as mailsystem is uninstalled.

File

mailsystem.install
View source
<?php

/**
 * @file
 * Sets/deletes the 'smtp_library' variable as mailsystem is enabled/disabled.
 *
 * Also deletes the 'mail_system' variable as mailsystem is uninstalled.
 */

/**
 * Implements hook_enable().
 */
function mailsystem_enable() {
  variable_set('smtp_library', drupal_get_path('module', 'mailsystem') . '/mailsystem.inc');
}

/**
 * Implements hook_disable().
 */
function mailsystem_disable() {
  variable_del('smtp_library');
}

/**
 * Implements hook_uninstall().
 */
function mailsystem_uninstall() {
  variable_del('mail_system');
}

Functions