You are here

function feeds_exit in Feeds 8.2

Same name and namespace in other branches
  1. 7.2 feeds.module \feeds_exit()

Implements hook_exit().

Related topics

File

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

Code

function feeds_exit() {

  // Process any pending PuSH subscriptions.
  $jobs = feeds_get_subscription_jobs();
  foreach ($jobs as $job) {
    if (!isset($job['fetcher']) || !isset($job['source'])) {
      continue;
    }
    $job['fetcher']
      ->subscribe($job['source']);
  }
  if (drupal_static('feeds_log_error', FALSE)) {
    watchdog('feeds', 'Feeds reported errors, visit the Feeds log for details.', array(), WATCHDOG_ERROR, 'admin/reports/dblog/feeds');
  }
}