You are here

function shouts_token_list in Heartbeat 6.4

Implementation of hook_token_list().

File

modules/shouts/shouts.module, line 160
Gives the possibility to the user to shout a message.

Code

function shouts_token_list($type = 'all') {
  if ($type == 'shout' || $type == 'all') {
    $tokens['shout']['shout-id'] = t('Shout ID');
    $tokens['shout']['shout-actor-avatar'] = t('Shout actor avatar');
    $tokens['shout']['shout-body'] = t('Shout body');
    $tokens['shout']['shout-body-raw'] = t('Shout body. WARNING - raw user input');
    $tokens['shout']['shout-author-uid'] = t("Shout author's user id");
    $tokens['shout']['shout-date'] = t("Shout creation year (four digit)");
    return $tokens;
  }
}