8.5.x aggregator.module aggregator_cron()
8.0.x aggregator.module aggregator_cron()
8.1.x aggregator.module aggregator_cron()
8.2.x aggregator.module aggregator_cron()
8.3.x aggregator.module aggregator_cron()
8.4.x aggregator.module aggregator_cron()
8.6.x aggregator.module aggregator_cron()
4.6.x aggregator.module aggregator_cron()
4.7.x aggregator.module aggregator_cron()
5.x aggregator.module aggregator_cron()
6.x aggregator.module aggregator_cron()
7.x aggregator.module aggregator_cron()

Implementation of hook_cron().

Checks news feeds for updates once their refresh interval has elapsed.

File

modules/aggregator/aggregator.module, line 288
Used to aggregate syndicated content (RSS, RDF, and Atom).

Code

function aggregator_cron() {
  $result = db_query('SELECT * FROM {aggregator_feed} WHERE checked + refresh < %d', time());
  while ($feed = db_fetch_array($result)) {
    aggregator_refresh($feed);
  }
}