function aggregator_aggregator_remove
aggregator_aggregator_remove($feed)
Implements hook_aggregator_remove().
File
- modules/aggregator/aggregator.processor.inc, line 53
- Processor functions for the aggregator module.
Code
function aggregator_aggregator_remove($feed) { $iids = db_query('SELECT iid FROM {aggregator_item} WHERE fid = :fid', array(':fid' => $feed->fid))->fetchCol(); if ($iids) { db_delete('aggregator_category_item') ->condition('iid', $iids, 'IN') ->execute(); } db_delete('aggregator_item') ->condition('fid', $feed->fid) ->execute(); drupal_set_message(t('The news items from %site have been removed.', array('%site' => $feed->title))); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!aggregator!aggregator.processor.inc/function/aggregator_aggregator_remove/7.x