You are here

function feeds_set_subscription_job in Feeds 7.2

Same name and namespace in other branches
  1. 8.2 feeds.module \feeds_set_subscription_job()

Registers a feed subscription job for execution on feeds_exit().

Parameters

array $job: Information about a new job to queue; or if set to NULL (default), leaves the current queued jobs unchanged.

Return value

array An array of subscribe jobs to process.

See also

feeds_exit()

feeds_get_subscription_jobs()

2 calls to feeds_set_subscription_job()
FeedsHTTPFetcher::sourceSave in plugins/FeedsHTTPFetcher.inc
Override sourceSave() - subscribe to hub.
feeds_get_subscription_jobs in ./feeds.module
Returns the list of queued jobs to be run.

File

./feeds.module, line 1485
Feeds - basic API functions and hook implementations.

Code

function feeds_set_subscription_job(array $job = NULL) {
  $jobs =& drupal_static(__FUNCTION__, array());
  if (isset($job)) {
    $jobs[] = $job;
  }
  return $jobs;
}