hook_aggregator_remove

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 hook_aggregator_remove($feed)

Implement this hook to remove stored data if a feed is being deleted or a feed's items are being removed.

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

Code

modules/aggregator/aggregator.api.php, line 225

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