Closed (fixed)
Project:
Feeds
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2013 at 04:26 UTC
Updated:
30 Jul 2016 at 08:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gordon commentedI have fixed up the example which was failing the php lint check.
Comment #3
johnvisn't this a duplicate of #1005128: Rules integration & enable modules to customize imports ?
Comment #4
gordon commentedNo this hook is invoked before the update of the entity, and is invoked every time a feed item is imported no matter if the entity is going to be updated or not.
With the feeds delete module it enabled me to track items in a feed to seem when they have been removed from the feeds it self.
Comment #5
twistor commentedmissing period.
int|null
If this is a new item, then it will be NULL.
We should remove the processor from the arguments. It can be obtained from the source.
Why are you passing in the full $parser_result?
Comment #6
gordon commentedI have made these changes, and change the parameters to be similar to the hook_feeds_after_save(). But the problem with removing the $processor it means you need the patch in #1962008: Add getter to Feedsimporter to allow Retreiving of plugin objects to get access to the processor.
But as long as this goes in you can use the example.
Comment #7
twistor commented(edit) Moved to appropriate issue.
Comment #8
twistor commentedOk, I've committed this. I went ahead and added the $entity_id back to all of the appropriate hooks since that is the only consistent way to do it.
Also fixed up the docs and added the hooks to hook_hook_info().
Comment #9
twistor commentedComment #10
megachriz