You are here

function cas_token_info in CAS 8

Same name and namespace in other branches
  1. 7 cas.tokens.inc \cas_token_info()
  2. 2.x cas.tokens.inc \cas_token_info()

Implements hook_token_info().

File

./cas.tokens.inc, line 14
Token module integration.

Code

function cas_token_info() {
  return [
    'types' => [
      'cas' => [
        'name' => t('CAS'),
        'description' => t('Tokens related to the CAS module.'),
      ],
    ],
    'tokens' => [
      'cas' => [
        'username' => [
          'name' => t('Username'),
          'description' => t('On most sites this is the same as the Drupal username.'),
        ],
        'login-url' => [
          'name' => t('Login URL (relative)'),
          'description' => t('The CAS login URL as a relative path.'),
        ],
        'login-url-absolute' => [
          'name' => t('Login URL (absolute)'),
          'description' => t('The complete CAS login URL including protocol and hostname,'),
        ],
      ],
    ],
  ];
}