aggregator_cron
Definition
aggregator_cron()
modules/aggregator.module, line 235
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', time());
while ($feed = db_fetch_array($result)) {
aggregator_refresh($feed);
}
}
?> 