You are here

function feed_import_entity_delete in Feed Import 7

Same name and namespace in other branches
  1. 7.2 feed_import.module \feed_import_entity_delete()

Implements hook_entity_delete().

File

./feed_import.module, line 182
User interface, cron functions for feed_import module

Code

function feed_import_entity_delete($entity, $type) {
  $info = FeedImport::getEntityInfo($type);
  $id = $entity->{$info['column']};
  if ($id && is_numeric($id)) {
    feed_import_add_to_delete($id, $type);
  }
}