function mimemail_requirements in Mime Mail 6
Same name and namespace in other branches
- 7 mimemail.install \mimemail_requirements()
Implements hook_requirements().
File
- ./
mimemail.install, line 11 - Install, update and uninstall functions for the Mime Mail module.
Code
function mimemail_requirements($phase) {
$requirements = array();
// Ensure translations don't break at install time
$t = get_t();
// Report Drupal version
if (!function_exists('drupal_random_key')) {
$requirements['drupal'] = array(
'title' => $t('Drupal'),
'value' => VERSION,
'description' => $t('Mime Mail requires Drupal version 6.29 or higher.'),
'severity' => REQUIREMENT_ERROR,
);
}
return $requirements;
}