function mandrill_requirements in Mandrill 7
Same name and namespace in other branches
- 8 mandrill.install \mandrill_requirements()
- 7.2 mandrill.install \mandrill_requirements()
Implements hook_requirements().
File
- ./
mandrill.install, line 64 - Install, update and uninstall functions for the mandrill module.
Code
function mandrill_requirements($phase) {
$requirements = array();
// Ensure translations don't break at install time.
$t = get_t();
if ($phase == 'update') {
if (!module_exists('mailsystem')) {
$requirements['mandrill'] = array(
'title' => $t('Mandrill'),
'value' => '7.x-1.4',
'description' => $t('Mail System module is required for Mandrill 7.x-1.3 or higher.'),
'severity' => REQUIREMENT_ERROR,
);
}
}
return $requirements;
}