FINAL suepr merge step : added all modules to this super repos
This commit is contained in:
46
sites/all/modules/contrib/mail/Mailjet/mailjet.install
Normal file
46
sites/all/modules/contrib/mail/Mailjet/mailjet.install
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Functions called while installing, uninstalling or activation of the module.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_install().
|
||||
*/
|
||||
function mailjet_install() {
|
||||
variable_set('mailjet_debug', FALSE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_uninstall().
|
||||
*/
|
||||
function mailjet_uninstall() {
|
||||
variable_del('mailjet_from');
|
||||
variable_del('mailjet_host');
|
||||
variable_del('mailjet_on');
|
||||
variable_del('mailjet_password');
|
||||
variable_del('mailjet_port');
|
||||
variable_del('mailjet_protocol');
|
||||
variable_del('mailjet_test');
|
||||
variable_del('mailjet_test_address');
|
||||
variable_del('mailjet_username');
|
||||
variable_del('mailjet_allowhtml');
|
||||
variable_del('mailjet_debug');
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_disable().
|
||||
*/
|
||||
function mailjet_disable() {
|
||||
variable_set('mailjet_on', FALSE);
|
||||
variable_set('mail_system', array('default-system' => 'DefaultMailSystem'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_update().
|
||||
*/
|
||||
function mailjet_update_7000() {
|
||||
if (variable_get('mailjet_on', FALSE)) {
|
||||
variable_set('mail_system', array('default-system' => 'MailjetSmtpMailSystem'));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user