This new hook is called after a new feed item has been saved in the system. This had the added advantage over hooks like hook_entity_insert() and hook_entity_update() in that additional feeds objects are also pasted to the called hooks.

This is used in feeds delete to allow updating of the batch information on new items added to the feed.

Example of implementation see http://drupal.org/sandbox/gordon/1939256

Comments

johnv’s picture

Status: Needs review » Closed (duplicate)

This is a duplicate of #1362378: Provide entity post-save hook.
Your patch is better, though, since it has an example.

gordon’s picture

Yes these are duplicates but my patch passes out a more information which I use, I will take a look at merging my patch into the other patch.