function hook_aggregator_remove

You are here

7 aggregator.api.php hook_aggregator_remove($feed)

Remove stored feed data.

Aggregator calls this hook if either a feed is deleted or a user clicks on "remove items".

If your module stores feed items for example on hook_aggregator_process() it is recommended to implement this hook and to remove data related to $feed when called.

Parameters

$feed: The $feed object whose items are being removed.

Related topics

1 function implements hook_aggregator_remove()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

aggregator_aggregator_remove in modules/aggregator/aggregator.processor.inc
Implements hook_aggregator_remove().
1 invocation of hook_aggregator_remove()
aggregator_remove in modules/aggregator/aggregator.module
Removes all items from a feed.

File

modules/aggregator/aggregator.api.php, line 214
Documentation for aggregator API.

Code

function hook_aggregator_remove($feed) {
  mymodule_remove_items($feed->fid);
}

Comments

For me this only works when a feed's items are removed, but not when the actual feed is removed as descriped.