I have a situation where a privileged user (role that is purchased) can flag content and receive email notifications to comments posted. When the role is expired, I need for them to stop receiving these emails. Is there any way (possibly using rules) to unflag all of the content they have flagged? Or is there another approach I should be taking?

  • Are you deleting the user when a selected role is expired.
    – arpitr
    Sep 29, 2013 at 6:36
  • User account remains, just the premium role they paid for is removed. Sep 29, 2013 at 12:13
  • please check if the following reply works for you.
    – arpitr
    Sep 29, 2013 at 12:14

1 Answer 1


You have to find out the event for expiring the roles, there you can unset the flag programmatically. However with other approach you can also add a check the role of user you are sending email to.

Here goes the steps:

  • Install rules_conditional module. This module allows to add extra conditions inside the rules action.
  • Please check the screen shots. enter image description here

Configurations as in following screenshot. enter image description here

Remember to have the nesting structure as in screenshot.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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