You are here

function googleanalytics_token_list in Google Analytics 6.4

Same name and namespace in other branches
  1. 6.3 googleanalytics.module \googleanalytics_token_list()

Implementation of hook_token_list().

File

./googleanalytics.module, line 685
Drupal Module: Google Analytics

Code

function googleanalytics_token_list($type = 'all') {
  if ($type == 'user' || $type == 'all') {
    $tokens['user']['user-role-names'] = t('The role names the user account is a member of as comma separated list.');
    $tokens['user']['user-role-ids'] = t('The role ids the user account is a member of as comma separated list.');
    return $tokens;
  }
}