You are here

function commentactivity_token_list in Activity 6

Same name and namespace in other branches
  1. 5.4 contrib/commentactivity/commentactivity.module \commentactivity_token_list()
  2. 5.3 contrib/commentactivity/commentactivity.module \commentactivity_token_list()

Token module integration. Defines available default tokens.

File

contrib/commentactivity/commentactivity.module, line 58

Code

function commentactivity_token_list($type = 'all') {
  if ($type == 'commentactivity') {
    $tokens['commentactivity'] = array(
      'comment-cid' => t('The Id of the comment'),
      'comment-subject' => t('The subject of the comment'),
      'comment-link' => t('Link to the comment'),
      'parent-node-author-uid' => t('User Id of the person who authored the parent node'),
      'parent-node-author' => t('Person who authored the parent node'),
      'parent-node-author-name' => t('The username of the person who authored the parent node'),
      'parent-node-id ' => t('The Id of the parent node'),
      'parent-node-link' => t('Link to the parent node'),
      'parent-node-title' => t('Title of the parent node'),
      'parent-node-type' => t('The type of the parent node'),
      'parent-comment-author-uid' => t('User Id of the person who authored the parent comment'),
      'parent-comment-author' => t('Person who authored the parent comment'),
      'parent-comment-author-name' => t('The username of the person who authored the parent comment'),
      'parent-comment-cid' => t('The Id of the parent comment'),
      'parent-comment-subject' => t('The subject of the parent comment'),
      'parent-comment-link' => t('Link to the parent comment'),
    );
    return $tokens;
  }
}