You are here

function _cas_attributes_token_list in CAS Attributes 6.3

Implements hook_token_list().

1 call to _cas_attributes_token_list()
cas_attributes_token_list in ./cas_attributes.module
Implements hook_token_list().

File

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

Code

function _cas_attributes_token_list($type = 'all') {
  $tokens = array();
  if ($type == 'cas' || $type == 'all') {
    if (function_exists('cas_phpcas_attributes')) {
      $tokens['cas']['cas-attribute-?'] = t('A CAS attribute of the user. Replace ? with the attribute name in lower case. (Only available if user is logged into CAS). <a href="@url">Available tokens</a>.', array(
        '@url' => url('admin/user/cas/attributes/cas'),
      ));

      // $tokens['cas']['cas-attribute-?-raw'] = t('A CAS attribute of the user. Replace ? with the attribute name in lower case. (Only available if user is logged into CAS). <a href="@url">Available tokens</a>.', array('@url' => url('admin/user/cas/attributes/cas')));
    }
  }
  return $tokens;
}