Schedule cclink event
Last modified: March 7, 2009 - 18:03
I needed a way to schedule a cclink event 30 days after a node was created. The standard cclinks Set event scheduling event action doesn't allow php code, so I found a way to do it with a php action. You may use the following code to control your event date:
<?php
// Schedule event in 30 days.
$event_date = time() + 60 * 60 * 24 * 30;
cclinks_link_apply_schedule_date($node, 'cclink1', strftime( "%Y-%m-%d %H:%M:%S", $event_date));
?>where cclink1 is your cclink internal name.
When you setup your rule configuration in Workflow-ng, you have to "Add an action" - "Execute custom PHP code". This is where you place the code.
