Download & Extend

Add a hook_feedapi_after_purge($feed)

Project:FeedAPI
Version:6.x-1.x-dev
Component:Code feedapi (core module)
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi!

There is currently no way to interfere with operation purge. In my case, I need to reset a counter after a purge opertion, which is not possible within a proper way.

The enclosed patch gives the possibility for any module to implements the hook feedapi_after_purge($feed) which is called at the end, after all processors have run their purge operation.

AttachmentSize
feedapi_after_purge.patch834 bytes

Comments

#1

Status:needs review» needs work

This looks good to me. Only consistent with hook_feedapi_after_refresh.

Minor cleanup:

- kill whitespace
- add changelog entry

#2

Status:needs work» needs review

This patch should be OK.

AttachmentSize
feedapi_after_purge.patch 1.42 KB

#3

Status:needs review» reviewed & tested by the community

Nice. Thank you.

#4

Status:reviewed & tested by the community» fixed

Committed. Thanks.

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.