function feeds_source_import in Feeds 7.2
Same name and namespace in other branches
- 8.2 feeds.module \feeds_source_import()
- 6 feeds.module \feeds_source_import()
- 7 feeds.module \feeds_source_import()
Scheduler callback for importing from a source.
Parameters
array $job: A job definition, which consists of at least the following elements:
- type (string) The importer ID.
- id (int) The Feed node ID if the importer is attached to a content type. Otherwise 0.
Related topics
4 string references to 'feeds_source_import'
- FeedsSource::getNextImportTimeDetails in includes/
FeedsSource.inc - Returns the next time that the feed will be imported.
- FeedsSource::scheduleImport in includes/
FeedsSource.inc - Schedule periodic or background import tasks.
- feeds_cron_job_scheduler_info in ./
feeds.module - Implements hook_cron_job_scheduler_info().
- feeds_cron_queue_info in ./
feeds.module - Implements hook_cron_queue_info().
File
- ./
feeds.module, line 150 - Feeds - basic API functions and hook implementations.
Code
function feeds_source_import(array $job) {
$source = _feeds_queue_worker_helper($job, 'import');
if ($source
->doesExist()) {
$source
->scheduleImport();
}
}