function feed_import_base_entity_delete in Feed Import 7.3
Same name and namespace in other branches
- 8 feed_import_base/feed_import_base.module \feed_import_base_entity_delete()
Implements hook_entity_delete().
File
- feed_import_base/
feed_import_base.module, line 503 - Basic settings for feed import base module
Code
function feed_import_base_entity_delete($entity, $type) {
$e = FeedImport::getEntityInfo($type);
if (isset($entity->{$e->idKey})) {
$id = $entity->{$e->idKey};
$id && is_numeric($id) && FeedImport::addDeletedEntity($type, $id);
}
}