You are here

function votingapiactivity_token_list in Activity 5.3

Same name and namespace in other branches
  1. 5.4 contrib/votingapiactivity/votingapiactivity.module \votingapiactivity_token_list()
  2. 6 contrib/votingapiactivity/votingapiactivity.module \votingapiactivity_token_list()

Token module integration

File

contrib/votingapiactivity/votingapiactivity.module, line 35

Code

function votingapiactivity_token_list($type = 'all') {
  if ($type == 'votingapiactivity') {
    $tokens['votingapiactivity'] = array(
      'node-id' => t('Id of the node that was voted upon'),
      'author' => t('Person who voted on the node'),
      'node-title' => t('Title of the node that was voted upon'),
      'node-title-link' => t('Link to the node that was voted upon'),
      'node-type' => t('The type of the node that was voted upon'),
      'author-name' => t('The name of who voted on the node'),
      'author-vote' => t('Value of the author\'s vote'),
      'node-vote-avg' => t('Average of all votes for this node'),
      'node-vote-count' => t('Count of all votes for this node'),
    );
    return $tokens;
  }
}