You are here

function heartbeat_comments_token_list in Heartbeat 6.4

Implementation of hook_token_list().

File

modules/heartbeat_comments/heartbeat_comments.module, line 385
heartbeat_comments.module Heartbeat comments can come with two possible

Code

function heartbeat_comments_token_list($type = 'all') {
  if ($type == 'heartbeat_comment') {
    $tokens['heartbeat_comment']['heartbeat-comment-id'] = t('ID of the heartbeat comment or node comment');
    $tokens['heartbeat_comment']['heartbeat-comment-body'] = t('Body of the heartbeat comment or node comment');
    $tokens['heartbeat_comment']['heartbeat-comment-body-raw'] = t('Body of the heartbeat comment or node comment. WARNING - raw user input');
    $tokens['heartbeat_comment']['heartbeat-comment-author-uid'] = t("Comment author's user id");
    $tokens['heartbeat_comment']['heartbeat-comment-date'] = t("Comment creation year (four digit)");
    $tokens['heartbeat_comment']['heartbeat-comment-uaid'] = t("Parent activity message ID");
    $tokens['heartbeat_comment']['heartbeat-message'] = t("Parent activity message");
    $tokens['heartbeat_comment']['heartbeat-message-raw'] = t("Parent activity message in raw format");
    $tokens['heartbeat_comment']['heartbeat-message-url'] = t("Absolute url to the parent activity message");
    $tokens['heartbeat_comment']['heartbeat-message-link'] = t("Link to the parent activity message, the title is the moment it occurred");
    return $tokens;
  }
}