You are here

function user_activity_token_list in Heartbeat 6.2

File

user_activity/user_activity.rules.inc, line 181

Code

function user_activity_token_list($type = 'all') {

  //dsm('user_activity_token_list called with '.$type);
  if ($type == 'boolean') {
    $tokens['boolean']['1-or-0'] = t("1 for true, 0 for false");
  }
  if ($type == 'node') {
    $tokens['node']['title-link'] = t("The node's title with a link to it");
  }
  if ($type == 'user') {
    $tokens['node']['user-name-url'] = t("The users name with a link to it");
    $tokens['user']['user-profile-url'] = t("The users name with a link to his/her profile page. <strong>USE ONLY when url-path is set to profile/username </strong>");
  }
  return $tokens;
}