function user_email_verification_user_view in User email verification 7
Same name and namespace in other branches
- 8 user_email_verification.module \user_email_verification_user_view()
Implements hook_user_view().
File
- ./
user_email_verification.module, line 553 - This module allows you to have e-mail verification and in meanwhile allowing the users to type their own passwords. If they do not verify their accounts in a certain time interval the user will be blocked.
Code
function user_email_verification_user_view($account, $view_mode, $langcode) {
// Present the information if a user has a verified account.
if ($view_mode == "full" && user_access('administer users')) {
$account->content['user_email_verification'] = array(
'#type' => 'user_profile_category',
'#attributes' => array(
'class' => array(
'user-email-verified',
),
),
'#title' => t('User email verification'),
);
$account->content['user_email_verification']['verified'] = array(
'#type' => 'user_profile_item',
'#title' => t('Verified account'),
'#markup' => user_email_verification_load_verify_flag($account->uid) ? t("Verified") : t("Not verified"),
);
}
}