You are here

function _feedapi_node_delete in FeedAPI 6

Same name and namespace in other branches
  1. 5 feedapi_node/feedapi_node.module \_feedapi_node_delete()

Delete a node which already assigned to a feed item

File

feedapi_node/feedapi_node.module, line 392
Handle how the feed items are represented as a content Handle the processing of the feed items

Code

function _feedapi_node_delete($feed_item) {
  if (isset($feed_item->nid)) {
    _feedapi_node_node_delete($feed_item->nid);
  }
  else {

    // Let's throw an error on the off chance we land here.
    watchdog('feedapi_node', 'No nid on feed item to delete.');
  }
}