mailsystem.install in Mail System 6
Same filename and directory in other branches
Sets/deletes the 'smtp_library' variable as mailsystem is enabled/disabled.
Also deletes the 'mail_system' variable as mailsystem is uninstalled.
File
mailsystem.installView 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
Name | Description |
---|---|
mailsystem_disable | Implements hook_disable(). |
mailsystem_enable | Implements hook_enable(). |
mailsystem_uninstall | Implements hook_uninstall(). |