function feeds_source_expire in Feeds 8.2
Same name and namespace in other branches
- 7.2 feeds.module \feeds_source_expire()
Scheduler callback for expiring content.
Related topics
2 string references to 'feeds_source_expire'
- feeds_cron_job_scheduler_info in ./
feeds.module - Implements hook_cron_job_scheduler_info().
- feeds_queue_info in ./
feeds.module - Implements hook_queue_info().
File
- ./
feeds.module, line 168 - Feeds - basic API functions and hook implementations.
Code
function feeds_source_expire($job) {
$source = feeds_source($job['type'], $job['id']);
try {
$source
->existing()
->expire();
} catch (FeedsNotExistingException $e) {
// Do nothing.
} catch (Exception $e) {
$source
->log('expire', $e
->getMessage(), array(), WATCHDOG_ERROR);
}
$source
->scheduleExpire();
}