You are here

function revisioning_token_list in Revisioning 6.4

Same name and namespace in other branches
  1. 6.3 revisioning_tokens.inc \revisioning_token_list()

Implementation of hook_token_list().

File

./revisioning_tokens.inc, line 24
Add tokens pertaining to the Revisioning module.

Code

function revisioning_token_list($type = 'all') {
  if ($type == 'node' || $type == 'all') {
    $tokens = array();
    $tokens['node']['vid'] = t('Node revision ID');
    $tokens['node']['revision-title'] = t('Revision title');
    $tokens['node']['revision-author-uid'] = t("Revision author's user id");
    $tokens['node']['revision-author-name'] = t("Revision author's user name");
    $tokens['node']['revision-author-name-raw'] = t("Revision author's user name. WARNING - raw user input.");
    $tokens['node']['revision-author-mail'] = t("Revision author's e-mail");
    $tokens['node']['revision-author-mail-raw'] = t("Revision author's e-mail. WARNING - raw user input.");
    return $tokens;
  }
}