3

I have a created a "Team" node type, and I'd like a single user to "invite" people onto the team, but require each team member's approval.

I currently have workflow states of "Approved" and "Unapproved" linked to the "Team" type, and an unlimited "User Reference" field attached to the "Team" type, but I'm not sure how to use Drupal's built-in approval mechanism appropriately. I could create an intermediary node type ("RSVP", maybe) with an "Approved/Unapproved" boolean field (or Workflow status, I suppose) and a "User Reference" with limit 1, and then link the RSVPs to the "team" type., but this seems a little kludgey.

2 Answers 2

1

Maybe write your own module

#1 push message for each team member

#2 for each member approval check if this it's all, if yes then push invite to new member/user

#2b if new member accept invite then add her/him to the group (you can do it with og API e.g.)

#3 if someone from group disapprove then remove invite from awaiting list

#x you can add some settings page so e.g. if 50% of team members agree with invitation then proceed to #2 and invite new user

2
  • I'm doing a lot of custom code in my own module already, so I'll probably end up doing something like this. Apr 25, 2012 at 20:51
  • glat to hear this. Please update me when You get some solution.. cheers
    – sobi3ch
    May 11, 2012 at 10:59
0

Have you looked at Organic Groups? Would require you reworking what you have already done though...

1
  • OG seems pretty heavy for my limited use case. Jan 26, 2012 at 16:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.