You are here

function googleanalytics_token_list in Google Analytics 6.3

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

Implementation of hook_token_list().

File

./googleanalytics.module, line 564
Drupal Module: GoogleAnalytics Adds the required Javascript to the bottom of all your Drupal pages to allow tracking by the Google Analytics statistics package.

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;
  }
}