You are here

function hook_workbench_scheduler_process_node_schedule_alter in Workbench Scheduler 7.2

Alter the schedules that get filtered before being sent to cron for final processing.

Parameters

$schedule: This hook is invoked from _workbench_scheduler_process_node_schedules($node_schedules).

array $schedule: An array of filtered 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
  • date: The date of the transition.
  • completed: A flag indicating if schedule has completed or not
  • active: A flag indicating if the schedule is active or not
  • node: The full node object
  • schedule: The full schedule object
1 invocation of hook_workbench_scheduler_process_node_schedule_alter()
_workbench_scheduler_process_node_schedules in ./workbench_scheduler.module
Fetches all active schedules.

File

./workbench_scheduler.api.php, line 104
workbench_scheduler.api.inc

Code

function hook_workbench_scheduler_process_node_schedule_alter(&$schedule) {
  $schedule->active = FALSE;
}