protected function FeedsSource::finishImport in Feeds 7.2
Cleans up after an import.
2 calls to FeedsSource::finishImport()
- FeedsSource::import in includes/
FeedsSource.inc - Import a source: execute fetching, parsing and processing stage.
- FeedsSource::pushImport in includes/
FeedsSource.inc - Imports a fetcher result all at once in memory.
File
- includes/
FeedsSource.inc, line 606 - Definition of FeedsSourceInterface, FeedsState and FeedsSource class.
Class
- FeedsSource
- Holds the source of a feed to import.
Code
protected function finishImport() {
$this->imported = time();
$this
->log('import', 'Imported in @s seconds.', array(
'@s' => $this->imported - $this->state[FEEDS_START],
), WATCHDOG_INFO);
// Allow fetcher to react on finishing importing.
$this->importer->fetcher
->afterImport($this);
// Allow other modules to react upon finishing importing.
module_invoke_all('feeds_after_import', $this);
if (module_exists('rules')) {
rules_invoke_event('feeds_after_import', $this);
}
$this
->clearStates();
}