Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I am new to drupal 7 and was willing to implement something like time based unsubscription from a OG Group.

I have users added in OG Group. I want to implement time based unsubscription of the users already added in the group say 'Computers'.

User say 'Tony' is added to the group 'Computers' today, now I wish that a user 'Tony' should be unsubscribed from the group 'Computers' after a subscription of 3 months (a specific time period).

A Notification message should be sent to user 'Tony'.

All the process should be based on systems current date and the joining date of user 'Tony' to the group 'Computers'.

Please help me with any solution.

share|improve this question

1 Answer

This is definitely a job for rules. It is also quite a complexed subject as you are going to need to utilise components so that you can schedule this to happen every day. I would do it like this:

  1. Set up a views_bulk_operations view that looks up all users that have been members of groups for 90 days.
  2. Create a rule component that loads the list of users, loops through the list, sends a notification and unsubscribes the user from the group.
  3. Schedule the rule to do this every day.
share|improve this answer
Thanks for the answer, i will surely try this. – Shashank Jun 14 '12 at 14:25
i am not able to create a view which shows username along with the membership creation date, so could you help me with it? – Shashank Jul 3 '12 at 10:53
I have created a VBO but not able to load VBO in the rule section? – Shashank Jul 12 '12 at 15:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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