function aggregator_cron

Same name and namespace in other branches
  1. 7.x drupal-7.x/modules/aggregator/aggregator.module \aggregator_cron()

Implementation of hook_cron().

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

Archivo

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

Código

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