function _feedapi_node_delete in FeedAPI 5
Same name and namespace in other branches
- 6 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 330  - 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', t('No nid on feed item to delete.'));
  }
}