function user_external_invite_token_info in User External Invite 7
Same name and namespace in other branches
- 8 user_external_invite.tokens.inc \user_external_invite_token_info()
- 7.2 user_external_invite.module \user_external_invite_token_info()
- 2.0.x user_external_invite.tokens.inc \user_external_invite_token_info()
- 1.0.x user_external_invite.module \user_external_invite_token_info()
Implements hook_token_info().
File
- ./
user_external_invite.module, line 788 - Invites a user to site when connecting via external protocol e.g. LDAP.
Code
function user_external_invite_token_info() {
$types['user_external_invite'] = array(
'name' => t("User External Invite"),
'description' => t("Tokens for User External Invite."),
);
$info['invite_link'] = array(
'name' => t('Invitation Link'),
'description' => t('Returns the link with query string for this invite'),
);
$info['invite_role'] = array(
'name' => t('Invitation Role'),
'description' => t('Returns the Role for the invite'),
);
$info['invited_email'] = array(
'name' => t('Email of Invite'),
'description' => t('Returns the email for the invite'),
);
$info['invited_emails'] = array(
'name' => t('Emails of Invitees'),
'description' => t('Returns the emails of users who where invited at the same time'),
);
$info['invite_custom'] = array(
'name' => t('Custom Message'),
'description' => t('Returns custom message for the invite'),
);
$info['invite_expiration'] = array(
'name' => t('Invite Expiration'),
'description' => t('Returns expiration time of invite.'),
);
return array(
'types' => $types,
'tokens' => array(
'user_external_invite' => $info,
),
);
}