Closed (won't fix)
Project:
Invite
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
22 Sep 2009 at 19:37 UTC
Updated:
1 Aug 2010 at 19:04 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| invite-accept-hook.patch | 726 bytes | blakehall |
Comments
Comment #1
christianchristensen commentedI 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!
Comment #2
YK85 commentedwould this in any way help #622152: Rules Integration
Comment #3
smk-ka commentedWell, 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.