function aggregator_remove

7.x aggregator.module aggregator_remove($feed)
5.x aggregator.module aggregator_remove($feed)
6.x aggregator.module aggregator_remove($feed)

Removes all items from a feed.


$feed: An object describing the feed to be cleared.

1 call to aggregator_remove()
aggregator_admin_remove_feed_submit in drupal/modules/aggregator/
Form submission handler for aggregator_admin_remove_feed().


drupal/modules/aggregator/aggregator.module, line 567
Used to aggregate syndicated content (RSS, RDF, and Atom).


function aggregator_remove($feed) {
  // Call hook_aggregator_remove() on all modules.
  module_invoke_all('aggregator_remove', $feed);
  // Reset feed.
  db_update('aggregator_feed')->condition('fid', $feed->fid)->fields(array(
    'checked' => 0,
    'hash' => '',
    'etag' => '',
    'modified' => 0,