You are here

function hook_feeds_before_import in Feeds 7.2

Same name and namespace in other branches
  1. 8.2 feeds.api.php \hook_feeds_before_import()

Invoked before a feed source import starts.

Parameters

FeedsSource $source: FeedsSource object that describes the source that is going to be imported.

Related topics

2 invocations of hook_feeds_before_import()
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

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

Code

function hook_feeds_before_import(FeedsSource $source) {

  // See feeds_rules module's implementation for an example.
}