You are here

function _scheduler_scheduler_nid_list in Scheduler 6

Same name and namespace in other branches
  1. 7 scheduler.cron.inc \_scheduler_scheduler_nid_list()

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

Parameters

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

Return value

an array of node IDs

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

File

./scheduler.module, line 860

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;
}