You are here

function email_confirmer_token_info in Email confirmer 8

Implements hook_token_info().

File

./email_confirmer.tokens.inc, line 14
Token related hook implementations.

Code

function email_confirmer_token_info() {
  $types['email-confirmer'] = [
    'name' => t('Email confirmer'),
    'description' => t('Tokens related to the email confirmation process'),
    'needs-data' => 'email_confirmer_confirmation',
  ];
  $tokens['confirmation-url'] = [
    'name' => t('Confirmation URL'),
    'description' => t('The URL of the page where users can confirm their email address.'),
  ];
  $tokens['confirmation-mail'] = [
    'name' => t('Confirmation email'),
    'description' => t('The email address to confirm.'),
  ];
  return [
    'types' => $types,
    'tokens' => [
      'email-confirmer' => $tokens,
    ],
  ];
}