You are here

function hook_aggregator_remove in Drupal 7

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);
}