You are here

function invite_by_email_token_info in Invite 8

Implements hook_token_info().

File

modules/invite_by_email/invite_by_email.tokens.inc, line 14
Invite tokens.

Code

function invite_by_email_token_info() {
  $info = [];
  $info['types']['invite'] = [
    'name' => t('Invite'),
    'description' => 'Invite by email tokens.',
  ];
  $info['tokens']['invite']['inviter:name'] = [
    'name' => t('Inviter name'),
    'description' => t('Name of the invitation creator.'),
    'dynamic' => TRUE,
  ];
  $info['tokens']['invite']['invite-accept-link'] = [
    'name' => t('Accept link'),
    'description' => t('Link to accept the invitation.'),
    'dynamic' => TRUE,
  ];
  return $info;
}