You are here

function invite_token_list in Invite 6.2

Same name and namespace in other branches
  1. 5.2 invite_token.inc \invite_token_list()
  2. 5 invite.module \invite_token_list()

Implementation of hook_token_list().

File

./invite_token.inc, line 27
Token integration functions for invite module.

Code

function invite_token_list($type = 'all') {
  if ($type == 'invite' || $type == 'all') {
    $tokens['invite']['inviter'] = t('The user name of the inviter.');
    $tokens['invite']['inviter-raw'] = t('The user name of the inviter. WARNING - raw user input.');
    $tokens['invite']['invite-mail'] = t('The e-mail address of the invited user.');
    $tokens['invite']['invite-message'] = t('The personal message for the invitee.');
    $tokens['invite']['invite-message-raw'] = t('The personal message for the invitee as unfiltered text. WARNING - raw user input.');
    $tokens['invite']['join-link'] = t('The link to the registration page, including the invitation code.');
    return $tokens;
  }
}