You are here

function hook_feeds_after_parse in Feeds 7.2

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 feeds.api.php \hook_feeds_after_parse()

Invoked after a feed source has been parsed, before it will be processed.

Parameters

FeedsSource $source: FeedsSource object that describes the source that has been imported.

FeedsParserResult $result: FeedsParserResult object that has been parsed from the source.

Related topics

1 function implements hook_feeds_after_parse()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

feeds_tests_feeds_after_parse in tests/feeds_tests.module
Implements hook_feeds_after_parse().
3 invocations of hook_feeds_after_parse()
FeedsSource::import in includes/FeedsSource.inc
Import a source: execute fetching, parsing and processing stage.
FeedsSource::preview in includes/FeedsSource.inc
Preview = fetch and parse a feed.
FeedsSource::pushImport in includes/FeedsSource.inc
Imports a fetcher result all at once in memory.

File

./feeds.api.php, line 103
Documentation of Feeds hooks.

Code

function hook_feeds_after_parse(FeedsSource $source, FeedsParserResult $result) {

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