You are here

function auto_login_url_token_info in Auto Login URL 8

Same name and namespace in other branches
  1. 7 auto_login_url.module \auto_login_url_token_info()
  2. 2.x auto_login_url.module \auto_login_url_token_info()

Implements hook_token_info().

File

./auto_login_url.module, line 56
Main file for auto_login_url module.

Code

function auto_login_url_token_info() {

  // Add new tokens.
  $info = [];

  // Home token.
  $info['tokens']['user']['auto-login-url-token'] = [
    'name' => t('Auto Login URL'),
    'description' => t('This an auto login token for the user.'),
  ];

  // Link that goes to user edit page.
  $info['tokens']['user']['auto-login-url-account-edit-token'] = [
    'name' => t('Auto Login URL account edit'),
    'description' => t('This an auto login for the user account page.'),
  ];
  return $info;
}