aggregator_cron

Definition

aggregator_cron()
modules/aggregator/aggregator.module, line 288

Description

Implementation of hook_cron().

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

Code

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

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.