You are here

function heatbeat_unlike_flag_token_info in Heartbeat 8

Implements hook_token_info().

File

modules/heartbeat_unlike/heartbeat_unlike.tokens.inc, line 13
Token for heatbeat_unlike_flag.

Code

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

  // Flag tokens.
  $types['flagcount'] = array(
    'name' => t('Flags count'),
    'description' => t('Tokens related to flag count (heatbeat_unlike_flag) 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,
  );
}