function heartbeat_like_token_info in Heartbeat 8
Same name in this branch
- 8 modules/heartbeat_like/heartbeat_like.tokens.inc \heartbeat_like_token_info()
- 8 modules/heartbeat_comment_like/heartbeat_like.tokens.inc \heartbeat_like_token_info()
Implements hook_token_info().
File
- modules/
heartbeat_comment_like/ heartbeat_like.tokens.inc, line 13 - Token for heartbeat_like.
Code
function heartbeat_like_token_info() {
$types = array();
$tokens = array();
// Flag tokens.
$types['flagcount'] = array(
'name' => t('Flags count'),
'description' => t('Tokens related to flag count (heartbeat_like) 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,
);
}