Posted by blakehall on September 22, 2009 at 7:37pm
Jump to:
| Project: | Invite |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | blakehall |
| Status: | closed (won't fix) |
Issue Summary
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 |
Comments
#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!
#2
would this in any way help #622152: Rules Integration
#3
Well, rules support would be nice on its own, but as christian said 'accept' is dubbed 'escalate' in invite (for historical reasons). Unless you think this should be changed at all costs I'm closing this issue.