I'm searching a way to set multiple cron events for a workflow. A simple example for a node:
A publisher create a content:
[Created --> Wait for review]
An auditor then approve the content:
[Wait for review --> Approved]
Now i want to set two scheduled task to make this node first "Published" (i.e. in a week), then "Archived" (i.e. in two week), in order to make content available to all users for an entire week (without using the core function publish/unpublish content which needs 'administer nodes' permission that is not too flexible for my needs).
With the module workflow-5.x-2.3 i can set up only a scheduled task at a time.
I try to develop a "patch" to make this possible: it's only a first approach to question, and indeed needs more work.
If there's someone interested, i'll be happy to develop and discuss together a better solution.
I will upload the modified module (with some comments) and the database patch as soon as possible.
P.S. Sorry for my english!
Comments
Files
For those who are interested, see the attachments. The module need more works. In particular, hook_form_alter() function don't works well: need validation on submit and doesn't shows list of current scheduled events.