comment_token_info

function comment_token_info

comment_token_info()

Implements hook_token_info().

File

modules/comment/comment.tokens.inc, line 11
Builds placeholder replacement tokens for comment-related data.

Code

function comment_token_info() {
  $type = array(
    'name' => t('Comments'),
    'description' => t('Tokens for comments posted on the site.'),
    'needs-data' => 'comment',
  );

  // Comment-related tokens for nodes
  $node['comment-count'] = array(
    'name' => t("Comment count"),
    'description' => t("The number of comments posted on a node."),
  );
  $node['c