You are here

function cas_token_info in CAS 7

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

Implements hook_token_info().

File

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

Code

function cas_token_info() {
  $types['cas'] = array(
    'name' => t('CAS user'),
    'description' => t('Tokens related to a CAS user.'),
    'needs-data' => 'cas',
  );
  $cas['name'] = array(
    'name' => t('Name'),
    'description' => t('The CAS username.'),
  );
  return array(
    'types' => $types,
    'tokens' => array(
      'cas' => $cas,
    ),
  );
}