I have found the function
rules_scheduler_schedule_task() under the rules module which supposedly does exactly what I want, but I have trouble interpreting how the function arguments are built. The arguments of that function are an array with the following keys :
- config: The machine readable name of the to be scheduled component.
- date: When the component should be executed.
- identifier: User provided string to identify the task per scheduled
And finally :
- state: A rules evaluation state to use for scheduling.
I don't have any trouble with the first three arguments, but what is the meaning of the later (
state) ? Is it where I put the arguments of the components ?
Could someone provide an example ?