Add a hook_feedapi_after_purge($feed)

B-Prod - October 8, 2009 - 09:22
Project:FeedAPI
Version:6.x-1.x-dev
Component:Code feedapi (core module)
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

alex_b - November 2, 2009 - 16:18
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

B-Prod - November 2, 2009 - 16:42
Status:needs work» needs review

This patch should be OK.

AttachmentSize
feedapi_after_purge.patch 1.42 KB

#3

alex_b - November 2, 2009 - 16:45
Status:needs review» reviewed & tested by the community

Nice. Thank you.

#4

Aron Novak - November 5, 2009 - 18:07
Status:reviewed & tested by the community» fixed

Committed. Thanks.

#5

System Message - November 19, 2009 - 18:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.