You are here

function nodeactivity_token_list in Activity 6

Same name and namespace in other branches
  1. 5.4 contrib/nodeactivity/nodeactivity.module \nodeactivity_token_list()
  2. 5.3 contrib/nodeactivity/nodeactivity.module \nodeactivity_token_list()

Token module integration. Defines available default tokens.

File

contrib/nodeactivity/nodeactivity.module, line 46

Code

function nodeactivity_token_list($type = 'all') {
  if ($type == 'nodeactivity') {
    $tokens['nodeactivity'] = array(
      'node-id' => t('Id of the post'),
      'node-title' => t('Title of the post'),
      'node-link' => t('Link to the post'),
      'node-type' => t('The node type of the post'),
    );
    return $tokens;
  }
}