You are here

function user_email_verification_url in User email verification 7

Generate the

Parameters

unknown $account:

Return value

string

1 call to user_email_verification_url()
user_email_verification_tokens in ./user_email_verification.tokens.inc
Implements hook_tokens().

File

./user_email_verification.module, line 505
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_url($account) {
  $timestamp = REQUEST_TIME;
  $hmac = user_email_verification_hmac($account->uid, $timestamp);
  $language = user_preferred_language($account);
  return url("user/email-verify/{$account->uid}/{$timestamp}/" . $hmac, array(
    'absolute' => TRUE,
    'language' => $language,
  ));
}