function email_registration_requirements in Email Registration 7
Same name and namespace in other branches
- 8 email_registration.install \email_registration_requirements()
Implements hook_requirements().
File
- ./
email_registration.install, line 11 - Checks requirements for the email_registration.module.
Code
function email_registration_requirements() {
$t = get_t();
$requirements = array();
if (module_exists('logintoboggan') && variable_get('logintoboggan_login_with_email', 0)) {
$requirements['email_registration'] = array(
'title' => $t('Email Registration / LoginToboggan Conflict'),
'value' => $t('Conflict'),
'description' => $t('There is a conflict between %email_registration and %logintoboggan. You should disable the "Allow users to login using their e-mail address" option from %logintoboggan.', array(
'%email_registration' => 'Email registration',
'%logintoboggan' => 'Login Toboggan',
)),
'severity' => REQUIREMENT_ERROR,
);
}
return $requirements;
}