From be0b65cd2e756961b9a484f1b6e474df67c9286b Mon Sep 17 00:00:00 2001 From: Chris Leppanen <chris.leppanen@gmail.com> Date: Thu, 6 Feb 2014 14:41:01 -0500 Subject: [PATCH] Issue #2190551 by twistor: Hook_feeds_before_import only executes during form submission. --- includes/FeedsSource.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/FeedsSource.inc b/includes/FeedsSource.inc index f4642498..f5475f15 100644 --- a/includes/FeedsSource.inc +++ b/includes/FeedsSource.inc @@ -238,7 +238,6 @@ class FeedsSource extends FeedsConfigurable { * method may throw the same exceptions as FeedsSource::import(). */ public function startImport() { - module_invoke_all('feeds_before_import', $this); $config = $this->importer->getConfig(); if ($config['process_in_background']) { $this->startBackgroundJob('import'); @@ -363,6 +362,7 @@ class FeedsSource extends FeedsConfigurable { try { // If fetcher result is empty, we are starting a new import, log. if (empty($this->fetcher_result)) { + module_invoke_all('feeds_before_import', $this); $this->state[FEEDS_START] = time(); } -- GitLab