You are here

function _scheduler_scheduler_api in Scheduler 6

Same name and namespace in other branches
  1. 5 scheduler.module \_scheduler_scheduler_api()
  2. 7 scheduler.module \_scheduler_scheduler_api()

Scheduler API to perform actions when nodes are (un)published

Parameters

$node: The node object

$action: The action being performed, either "publish" or "unpublish"

2 calls to _scheduler_scheduler_api()
_scheduler_publish in ./scheduler.module
Publish scheduled nodes.
_scheduler_unpublish in ./scheduler.module
Unpublish scheduled nodes.

File

./scheduler.module, line 924

Code

function _scheduler_scheduler_api($node, $action) {
  foreach (module_implements('scheduler_api') as $module) {
    $function = $module . '_scheduler_api';
    $function($node, $action);
  }
}