You are here

public static function FeedImportSQLHashes::deleteEntities in Feed Import 7.3

Deletes entities by type and id

Parameters

int|array $ids: Entity ids

string $entity_type: Entity type

Overrides FeedImportStaticHashManager::deleteEntities

File

feed_import_base/inc/feed_import.inc, line 1998
This file contains Feed Import helpers.

Class

FeedImportSQLHashes
This class implements SQL hash storage

Code

public static function deleteEntities($ids, $entity_type) {
  db_delete('feed_import_hashes')
    ->condition('entity', $entity_type)
    ->condition('entity_id', $ids)
    ->execute();
}