You are here

function aggregator_cron in Drupal 4

Same name and namespace in other branches
  1. 8 core/modules/aggregator/aggregator.module \aggregator_cron()
  2. 5 modules/aggregator/aggregator.module \aggregator_cron()
  3. 6 modules/aggregator/aggregator.module \aggregator_cron()
  4. 7 modules/aggregator/aggregator.module \aggregator_cron()
  5. 9 core/modules/aggregator/aggregator.module \aggregator_cron()

Implementation of hook_cron().

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

File

modules/aggregator.module, line 235
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);
  }
}