You are here

function invite_token_info in Invite 7.2

Implements hook_token_info().

File

./invite.tokens.inc, line 57
Token integration functions for invite module.

Code

function invite_token_info() {
  $types['invite'] = array(
    'name' => t("Invite"),
    'description' => t("Tokens related to invites."),
    'needs-data' => 'invite',
  );
  $tokens['inviter'] = array(
    'name' => t('Inviter'),
    'description' => t('The user name of the inviter.'),
  );
  $tokens['inviter-raw'] = array(
    'name' => t('Inviter (raw)'),
    'description' => t('The user name of the inviter. WARNING - raw user input.'),
  );
  $tokens['invite-mail'] = array(
    'name' => t('Invite mail'),
    'description' => t('The e-mail address of the invited user.'),
  );
  $tokens['invite-message'] = array(
    'name' => t('Invite message'),
    'description' => t('The personal message for the invitee.'),
  );
  $tokens['join-link'] = array(
    'name' => t('Join link'),
    'description' => t('The link to the registration page, including the invitation code.'),
  );
  return array(
    'types' => $types,
    'tokens' => array(
      'invite' => $tokens,
    ),
  );
}