function maillog_requirements in Maillog / Mail Developer 6
Implementation of hook_requirements().
File
- ./
maillog.install, line 11 - Provides the installation routines for the maillog module
Code
function maillog_requirements($phase) {
$requirements = array();
if ($phase == 'runtime') {
if (variable_get('smtp_library', '') != drupal_get_path('module', 'maillog') . '/includes/maillog.inc') {
$requirements[] = array(
'title' => 'Maillog: SMTP Library',
'description' => t('SMTP library is not set to use Maillog. To fix the situation, re-enable Maillog in order to reset the SMTP library.'),
'severity' => REQUIREMENT_ERROR,
);
}
else {
$requirements[] = array(
'title' => 'Maillog: SMTP Library',
'description' => t('SMTP library is set to use Maillog.'),
'severity' => 'REQUIREMENT_OK',
);
}
}
return $requirements;
}