Closed (fixed)
Project:
Feeds
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2014 at 15:09 UTC
Updated:
25 Feb 2014 at 18:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
klausipatch attached.
Comment #2
twistor commentedMakes sense. I added a note that the exception should not be thrown from the hook.
http://drupalcode.org/project/feeds.git/commit/0ba4a84
No backport needed since hook_feeds_after_import doesn't get called if there was an exception in 6.x.
Now I wonder if I was premature in committing this. Does it even make sense to call the hook during an exception? I guess it gives the most flexibility, but it seems to me that 99% of hooks will only want to execute if there was no error.
Comment #3
klausiI want some hook to be fired if exceptions occur, because I want to react in case of errors (notify an admin, disable the feed, whatever). In case we don't execute the hook what else could I use?