function email_registration_requirements in Email Registration 8
Same name and namespace in other branches
- 7 email_registration.install \email_registration_requirements()
Implements hook_requirements().
File
- ./
email_registration.install, line 11 - Update and installation requirement hooks for the Email Registration module.
Code
function email_registration_requirements() {
$requirements = [];
// @todo Get rid of variable_get() and check is this conflict still valid.
if (\Drupal::moduleHandler()
->moduleExists('logintoboggan') && \Drupal::config('logintoboggan.settings')
->get('login_with_email')) {
$requirements['email_registration'] = [
'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 email address" option from %logintoboggan.', [
'%email_registration' => 'Email registration',
'%logintoboggan' => 'Login Toboggan',
]),
'severity' => REQUIREMENT_ERROR,
];
}
return $requirements;
}