I'm working on the user relationships module and we want to allow users to choose what relationship gets set when inviting other users. Since we're using multiple named relationships, we can't user hook_invite $op == "escalate" to create a relationship automatically b/c we don't know which relationship to create. Instead, we patched the invite module to pass the invite code in hook_invite, $op == "invite". When that operation is triggered, we generate an entry in a db table that links the invite code with inviter & relationship id. When the invitee signs up, we use $op == "escalate" to create the appropriate relationship. It'd be really swell to get this patch incorporated into the invite module.

Thanks!

CommentFileSizeAuthor
invite_2.patch1.56 KBgwen

Comments

smk-ka’s picture

Yep, that doesn't hurt. Thank you, committed.
http://drupal.org/cvs?commit=84497

smk-ka’s picture

Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)
oxford-dev’s picture

Is there any way to take this feature out? At least be able to turn it on/off...