Skip to content
Snippets Groups Projects
Commit be0b65cd authored by Chris Leppanen's avatar Chris Leppanen
Browse files

Issue #2190551 by twistor: Hook_feeds_before_import only executes during form submission.

parent 8fb014a9
No related branches found
No related tags found
No related merge requests found
...@@ -238,7 +238,6 @@ class FeedsSource extends FeedsConfigurable { ...@@ -238,7 +238,6 @@ class FeedsSource extends FeedsConfigurable {
* method may throw the same exceptions as FeedsSource::import(). * method may throw the same exceptions as FeedsSource::import().
*/ */
public function startImport() { public function startImport() {
module_invoke_all('feeds_before_import', $this);
$config = $this->importer->getConfig(); $config = $this->importer->getConfig();
if ($config['process_in_background']) { if ($config['process_in_background']) {
$this->startBackgroundJob('import'); $this->startBackgroundJob('import');
...@@ -363,6 +362,7 @@ class FeedsSource extends FeedsConfigurable { ...@@ -363,6 +362,7 @@ class FeedsSource extends FeedsConfigurable {
try { try {
// If fetcher result is empty, we are starting a new import, log. // If fetcher result is empty, we are starting a new import, log.
if (empty($this->fetcher_result)) { if (empty($this->fetcher_result)) {
module_invoke_all('feeds_before_import', $this);
$this->state[FEEDS_START] = time(); $this->state[FEEDS_START] = time();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment