1

I have a content type called change_note, and within that I have a field called action, action_owner, a field called action_date, and one called action status. What I am trying to do, is get the site to check if the action status = pending, and if true send an email to the person listed in action owner.

I can work out how to do this if it is based on someone saving the content (using the rules module in drupal 7) but I can't see how you do it based on just a specific schedule. I've looked at the schedule module also, but am struggling to see how to do it in that.

1

A possible solution is to transform the rule you already have, into a Rules Component, so that your original Rule "schedules the execution" (using the Rules Scheduler submodule) of that Rules Component (eg X secs or mins "after saving the content") ... That Rules Component will then be executed next time cron runs.

If you then also add an extra Rules Action in that Rules Component (as last Rules Action) to reschedule the same Rules Component after 1 week, you should have achieved what your question is about.

Obviously, as soon as at least 1 of the Rules Conditions in your Rules Component are no longer satisfied, its Rules Actions will not be performed anymore, so that is when the weekly rescheduling also stops.

Easy, no?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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