Add Hook for Invite Acceptance
blakehall - September 22, 2009 - 19:37
| Project: | Invite |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | blakehall |
| Status: | needs review |
Jump to:
Description
Most changes of state in the invite process already have hooks, however the actual acceptance does not.
This small patch adds a module_invoke_all('invite', 'accept) to _invite_accept() for other modules to tie into after an invite has actually been accepted.
| Attachment | Size |
|---|---|
| invite-accept-hook.patch | 726 bytes |

#1
I think the change from invited to accepted is termed as 'escalate' in the hook_invite in the $op function argument... the return args are:
// $args['invitee']: The user account object of the person who was invited.
// $args['inviter']: The user account object of the person who did the inviting.
// $args['roles']: An array of roles the invited person has been escalated to.
I think the full doc for the hook is in the readme.txt of the module "-- INVITE API --" :)
I hope this helps!