function party_user_requirements in Party 7
Same name and namespace in other branches
- 8.2 modules/party_user/party_user.install \party_user_requirements()
Implements hook_requirements().
File
- modules/
party_user/ party_user.install, line 38 - party_user.install Contains install hooks.
Code
function party_user_requirements($phase) {
$requirements = array();
// Ensure translations don't break at install time
$t = get_t();
// Check the core setting we set in party_user_enable() hasn't been reverted.
if ($phase == 'runtime') {
if (!variable_get('user_email_verification', TRUE)) {
$requirements['party_user_core_verification'] = array(
'title' => $t('New account email verification'),
'description' => $t('The Party User module requires new user accounts to verifify their email addresses. You should change the setting on the <a href="!url">account settings page</a>.', array(
'!url' => url('admin/config/people/accounts'),
)),
'severity' => REQUIREMENT_ERROR,
'value' => $t('Not set'),
);
}
}
return $requirements;
}