You are here

function hook_workbench_scheduler_post_process_start_dates in Workbench Scheduler 7

Perform action after starting schedules for nodes.

This hook is invoked from workbench_scheduler_process_start_dates() after starting schedules for nodes.

Parameters

array $scheduled_nodes: An array of node schedule data, each element in the array is an object containing the following properties:

  • nid: The node nid
  • vid: The node revision id
  • sid: The schedule id
  • start_state: The state the node was set to.
1 invocation of hook_workbench_scheduler_post_process_start_dates()
workbench_scheduler_process_start_dates in ./workbench_scheduler.module
Run schedules for start times / states.

File

./workbench_scheduler.api.inc, line 79
workbench_scheduler.api.inc

Code

function hook_workbench_scheduler_post_process_start_dates(array $scheduled_nodes) {

  // Set a watchdog log message.
  watchdog('workbench_scheduler', '@count nodes had their schedules started.', array(
    '@count' => count($scheduled_nodes),
  ), WATCHDOG_NOTICE);
}