How to create a postponed action programmatically?

by Yakimkin Roman   Last Updated November 13, 2017 18:07 PM

There's a task.

When user is registered he's assigned an advanced role, but in three month this role should be taken away.

Could you clarify me, is it possible to create this action programmatically using opportunities of modules rules and rules_scheduler ?

Or, is it possible to assign programmatically a postponed executing for some php function via modules rules and rules scheduler ?

I found a function rules_scheduler_schedule_task in the rules_scheduler.module file, but i can't understand how to create parameter $task.

Could you help me, how to do it ?

Tags : 7 rules

Related Questions

Clone nodes and change fields with Rules and VBO

Updated May 20, 2015 20:03 PM