function invite_token_values in Invite 6.2
Same name and namespace in other branches
- 5.2 invite_token.inc \invite_token_values()
- 5 invite.module \invite_token_values()
Implementation of hook_token_values().
File
- ./
invite_token.inc, line 11 - Token integration functions for invite module.
Code
function invite_token_values($type = 'all', $object = NULL) {
$values = array();
if ($type == 'invite' && is_object($object)) {
$values['inviter'] = check_plain($object->inviter->name);
$values['inviter-raw'] = $object->inviter->name;
$values['invite-mail'] = $object->email;
$values['invite-message'] = check_plain($object->data['message']);
$values['invite-message-raw'] = $object->data['message'];
$values['join-link'] = url('invite/accept/' . $object->code, array(
'absolute' => TRUE,
));
}
return $values;
}