function feeds_entity_delete in Feeds 7.2
Same name and namespace in other branches
- 8.2 feeds.module \feeds_entity_delete()
Implements hook_entity_delete().
Related topics
File
- ./
feeds.module, line 686 - Feeds - basic API functions and hook implementations.
Code
function feeds_entity_delete($entity, $type) {
list($id) = entity_extract_ids($type, $entity);
// Delete any imported items produced by the source.
db_delete('feeds_item')
->condition('entity_type', $type)
->condition('entity_id', $id)
->execute();
}