function feeds_importer_expire in Feeds 6
Same name and namespace in other branches
- 7 feeds.module \feeds_importer_expire()
Scheduler callback for expiring content.
Related topics
3 string references to 'feeds_importer_expire'
- FeedsImporter::delete in includes/
FeedsImporter.inc - Delete configuration. Removes configuration information from database, does not delete configuration itself.
- FeedsImporter::schedule in includes/
FeedsImporter.inc - Schedule this importer.
- feeds_cron_queue_info in ./
feeds.module - Implementation of hook_cron_queue_info().
File
- ./
feeds.module, line 80 - Feeds - basic API functions and hook implementations.
Code
function feeds_importer_expire($job) {
$importer = feeds_importer($job['type']);
try {
$importer
->existing()
->expire();
} catch (FeedsNotExistingException $e) {
// Do nothing.
} catch (Exception $e) {
watchdog('feeds_importer_expire()', $e
->getMessage(), array(), WATCHDOG_ERROR);
}
$importer
->schedule();
}