This hook is called when ever is a feed item is going to be updated. This hook is called no matter if the feed item is updated or not.
In the feeds delete module this is used to track when the item in the feed was last seen.
Example of implementation see http://drupal.org/sandbox/gordon/1939256
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