Closed (outdated)
Project:
Invite
Version:
master
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2009 at 03:55 UTC
Updated:
17 May 2020 at 08:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Gekiboy commented+1 on the feature request, haven't tried the patch
Comment #2
Gekiboy commentedAs an added note, because the user who is invited can potentially register with a different email address than the one which was used for sending the invite, there is no definite way to attach any functionality to a particular invite without the registration code. Adding it in is a simple matter of passing $invite->reg_code into the _invite_escalate_role() function and then passing it into the module_invoke_all() call. If would be really useful to be able to have this functionality without having to result to a patch.
Comment #3
YK85 commentedwould this in any way help #622152: Rules Integration
Comment #4
smk-ka commentedHere's a patch that passes the invite code as additional parameter. This makes hook_invite('escalate') behave consistently with the other hook op's.
Comment #5
YK85 commentedAwesome! I have someone looking into the Rules Integration and hope he will be able to post a patch in the near future.
Comment #6
hefox commentedHow about instead giving it the entire invite object instead? I needed to do this wonkyness to get the entire invite. (I needed to allow site admins pick a role on inviting, so stored it in $invite->data u.u)
This is really desired as invite_load isn't cached, and neither is user_load, which it calls.
Comment #7
YK85 commentedI'm not sure how to test but hope this may be reviewed by someone to help with Rules Integration.
Thank you very much
Comment #8
avpadernoI am closing this issue, since it's for a Drupal version no longer supported.