You are here

htmlmail.install in HTML Mail 7

Installation for HTML Mail module.

File

htmlmail.install
View source
<?php

/**
 * @file
 * Installation for HTML Mail module.
 */

/**
 * Implements hook_install().
 */
function htmlmail_install() {
  db_query("UPDATE {system} SET weight = 1 WHERE name = 'htmlmail'");
}

/**
 * Implements hook_enable().
 */
function htmlmail_enable() {
  mailsystem_set(array(
    'htmlmail' => 'HTMLMailMailSystem',
  ));
}

/**
 * Implements hook_disable().
 */
function htmlmail_disable() {
  mailsystem_clear(array(
    'htmlmail' => 'HTMLMailMailSystem',
  ));
}

/**
 * Implements hook_uninstall().
 */
function htmlmail_uninstall() {
  db_query("DELETE FROM {variable} WHERE name LIKE 'htmlmail_%'");
  cache_clear_all('variables', 'cache');
}

Functions