Closed (duplicate)
Project:
Feeds
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
5 Apr 2013 at 04:31 UTC
Updated:
10 Apr 2013 at 22:04 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| 0002-Add-hook-hook_feeds_postsave.patch | 2 KB | gordon |
Comments
Comment #1
johnvThis is a duplicate of #1362378: Provide entity post-save hook.
Your patch is better, though, since it has an example.
Comment #2
gordon commentedYes 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.