You are here

function _scheduler_scheduler_nid_list in Scheduler 7

Same name and namespace in other branches
  1. 6 scheduler.module \_scheduler_scheduler_nid_list()

Gather node IDs for all nodes that need to be $action'ed.

Parameters

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

Return value

array An array of node ids.

2 calls to _scheduler_scheduler_nid_list()
_scheduler_publish in ./scheduler.cron.inc
Publish scheduled nodes.
_scheduler_unpublish in ./scheduler.cron.inc
Unpublish scheduled nodes.

File

./scheduler.cron.inc, line 206
Scheduler cron functions.

Code

function _scheduler_scheduler_nid_list($action) {
  $nids = array();
  foreach (module_implements('scheduler_nid_list') as $module) {
    $function = $module . '_scheduler_nid_list';
    $nids = array_merge($nids, $function($action));
  }
  return $nids;
}