You are here

function hook_feeds_after_parse in Feeds 7

Same name and namespace in other branches
  1. 8.2 feeds.api.php \hook_feeds_after_parse()
  2. 6 feeds.api.php \hook_feeds_after_parse()
  3. 7.2 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 96

Code

function hook_feeds_after_parse(FeedsImporter $importer, FeedsSource $source) {

  // For example, set title of imported content:
  $source->batch
    ->setTitle('Import number ' . my_module_import_id());
}