messaging_phpmailer.install in Messaging 6.4
File
messaging_phpmailer/messaging_phpmailer.install
View source
<?php
function messaging_phpmailer_install() {
drupal_set_message('Messaging PHPMailer sucessfully installed!');
}
function messaging_phpmailer_uninstall() {
variable_del('messaging_phpmailer_smtp_server');
}
function messaging_phpmailer_requirements($phase) {
$requirements = array();
$t = get_t();
if ($phase == 'runtime') {
drupal_load('module', 'messaging_phpmailer');
if (!messaging_phpmailer_load_library()) {
$requirements['messaging_html_mail'] = array(
'title' => $t('Messaging PHPMailer'),
'value' => $t('PHP Mailer missing'),
'severity' => REQUIREMENT_ERROR,
'description' => $t('HTML Mail requires the <a href="http://phpmailer.codeworxtech.com/">PHP Mailer</a> class to properly send HTML Mail. Please download the 2.0 version (if using PHP4) or the 5.0 version (if using PHP5) and place the phpmailer folder in your messaging_phpmailer module directory. Rename the folder to "PHPMailer".'),
);
}
}
return $requirements;
}