updated mailgun, mailsystem, honeypot, googleanalitycs, features, content_taxonomy
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Install, update and uninstall functions for the Mailgun module.
|
||||
@@ -11,7 +10,19 @@
|
||||
*/
|
||||
function mailgun_uninstall() {
|
||||
// Delete variables.
|
||||
$variables = array('mailgun_api_key', 'mailgun_from_action', 'mailgun_from_name', 'mailgun_from_mail', 'mailgun_tracking', 'mailgun_tracking_clicks', 'mailgun_tracking_opens', 'mailgun_queue', 'mailgun_log', 'mailgun_format');
|
||||
$variables = array(
|
||||
'mailgun_api_key',
|
||||
'mailgun_from_action',
|
||||
'mailgun_from_name',
|
||||
'mailgun_from_mail',
|
||||
'mailgun_tracking',
|
||||
'mailgun_tracking_clicks',
|
||||
'mailgun_tracking_opens',
|
||||
'mailgun_queue',
|
||||
'mailgun_log',
|
||||
'mailgun_format',
|
||||
'mailgun_tagging_mailkey',
|
||||
);
|
||||
foreach ($variables as $variable) {
|
||||
variable_del($variable);
|
||||
}
|
||||
@@ -32,3 +43,28 @@ function mailgun_disable() {
|
||||
mailsystem_clear(array('mailgun_test' => 'MailgunMailSystem'));
|
||||
watchdog('mailgun', 'Mailgun has been disabled.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_requirements().
|
||||
*/
|
||||
function mailgun_requirements($phase) {
|
||||
// Ensure translations don't break during installation.
|
||||
$t = get_t();
|
||||
|
||||
$requirements = array();
|
||||
|
||||
if ($phase === 'runtime') {
|
||||
$requirements['mailgun']['title'] = $t('Mailgun');
|
||||
|
||||
if (mailgun_check_library()) {
|
||||
$requirements['mailgun']['value'] = $t('The Mailgun library is installed correctly.');
|
||||
$requirements['mailgun']['severity'] = REQUIREMENT_OK;
|
||||
}
|
||||
else {
|
||||
$requirements['mailgun']['value'] = $t('The Mailgun library has not been installed correctly.');
|
||||
$requirements['mailgun']['severity'] = REQUIREMENT_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
return $requirements;
|
||||
}
|
||||
|
Reference in New Issue
Block a user