You are here

function feedapi_aggregator_nodeapi in FeedAPI 5

Implementation of hook_nodeapi().

File

feedapi_aggregator/feedapi_aggregator.module, line 214

Code

function feedapi_aggregator_nodeapi(&$node, $op, $teaser, $page) {
  if (isset($node->feed)) {
    switch ($op) {
      case 'delete':
        if (is_array($node->feed->processors)) {
          if (in_array('feedapi_aggregator', $node->feed->processors)) {
            db_query('DELETE FROM {feedapi_aggregator_category_feed} WHERE feed_nid = %d', $node->nid);
          }
        }
    }
  }
}