You are here

public static function FeedImport::addDeletedEntity in Feed Import 7.3

Schedule a deleted entity to be removed from hashes.

Parameters

string $entity_type: Entity type

int $id: Entity id

1 call to FeedImport::addDeletedEntity()
feed_import_base_entity_delete in feed_import_base/feed_import_base.module
Implements hook_entity_delete().

File

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

Class

FeedImport
This class provides helper functions for feed import.

Code

public static function addDeletedEntity($entity_type, $id) {
  static $unregistered = TRUE;
  if ($unregistered) {
    $unregistered = FALSE;
    register_shutdown_function(array(
      __CLASS__,
      'removeEntityHashes',
    ));
  }
  static::$deletedEntities[$entity_type][] = $id;
}