function _invite_token_types in Invite 5.2
Same name and namespace in other branches
- 5 invite.module \_invite_token_types()
- 6.2 invite.module \_invite_token_types()
Provide token types for use in invite message replacements.
Parameters
$args: Associative array of additional arguments to merge in the invite object.
Return value
Array of token types suitable as input for token_replace().
3 calls to _invite_token_types()
- invite_form_submit in ./
invite.module - Forms API callback; process submitted form data.
- invite_get_subject in ./
invite.module - Return the invite e-mail subject.
- theme_invite_form in ./
invite.module - Theme function for the invite form.
File
- ./
invite.module, line 1339 - Allows your users to send and track invitations to join your site.
Code
function _invite_token_types($args = array()) {
global $user;
if (!is_array($args)) {
$args = (array) $args;
}
$invite = _invite_substitutions($args);
return array(
'user' => $user,
'profile' => $user,
'invite' => $invite,
);
}