You are here

function user_registrationpassword_token_info in User registration password 8

Same name and namespace in other branches
  1. 7 user_registrationpassword.tokens.inc \user_registrationpassword_token_info()

Implements hook_token_info().

File

./user_registrationpassword.tokens.inc, line 13
User registration password tokens.

Code

function user_registrationpassword_token_info() {
  $user['registrationpassword-url'] = [
    'name' => t('Registration password URL'),
    'description' => t('URL to confirm registration.'),
    'restricted' => TRUE,
  ];
  return [
    'tokens' => [
      'user' => $user,
    ],
  ];
}