You are here

function user_email_verification_token_info in User email verification 7

Same name and namespace in other branches
  1. 8 user_email_verification.tokens.inc \user_email_verification_token_info()

Implements hook_token_info().

File

./user_email_verification.tokens.inc, line 11
Builds placeholder replacement tokens for user-related data.

Code

function user_email_verification_token_info() {
  $info['tokens']['user']['verify-email'] = array(
    'name' => t('Verify-email URL'),
    'description' => t('The URL to verify the user e-mail.'),
    'restricted' => TRUE,
  );
  $info['tokens']['user']['verify-email-extended'] = array(
    'name' => t('Verify-email extended URL'),
    'description' => t('The URL to verify the user e-mail after initial timeout period.'),
    'restricted' => TRUE,
  );
  return $info;
}