You are here

function heartbeat_like_comment_token_info in Heartbeat 8

Implements hook_token_info().

File

modules/heartbeat_like_comment/heartbeat_like_comment.tokens.inc, line 13
Token for heartbeat_like.

Code

function heartbeat_like_comment_token_info() {
  $types = array();
  $tokens = array();

  // Flag tokens.
  $types['flagcount'] = array(
    'name' => t('Flags count'),
    'description' => t('Tokens related to flag count (heartbeat_like_comment) module.'),
  );
  $tokens['flagcount']['count'] = array(
    'name' => t('Count'),
    'description' => t('Number of times the flag has been flagged.'),
    'needs-data' => 'flag',
  );
  return array(
    'types' => $types,
    'tokens' => $tokens,
  );
}