htmlmail.install in HTML Mail 7
Same filename and directory in other branches
Installation for HTML Mail module.
File
htmlmail.installView 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
Name | Description |
---|---|
htmlmail_disable | Implements hook_disable(). |
htmlmail_enable | Implements hook_enable(). |
htmlmail_install | Implements hook_install(). |
htmlmail_uninstall | Implements hook_uninstall(). |