function hook_feeds_after_parse in Feeds 6
Same name and namespace in other branches
- 8.2 feeds.api.php \hook_feeds_after_parse()
 - 7.2 feeds.api.php \hook_feeds_after_parse()
 - 7 feeds.api.php \hook_feeds_after_parse()
 
Invoked after a feed source has been parsed, before it will be processed.
Parameters
$importer: FeedsImporter object that has been used for importing the feed.
$source: FeedsSource object that describes the source that has been imported.
Related topics
2 invocations of hook_feeds_after_parse()
- FeedsSource::import in includes/
FeedsSource.inc  - Import a feed: execute fetching, parsing and processing stage.
 - FeedsSource::preview in includes/
FeedsSource.inc  - Preview = fetch and parse a feed.
 
File
- ./
feeds.api.php, line 95  - Documentation of Feeds hooks.
 
Code
function hook_feeds_after_parse(FeedsImporter $importer, FeedsSource $source) {
  // For example, set title of imported content:
  $source->batch->title = 'Import number ' . my_module_import_id();
}