You are here

function recently_read_entity_delete in Recently Read 7.3

Implements hook_entity_delete().

File

./recently_read.module, line 76
Recently read module file. Displays a history of recently read entities.

Code

function recently_read_entity_delete($entity, $type) {
  list($id) = entity_extract_ids($type, $entity);
  db_delete('recently_read')
    ->condition('type', $type)
    ->condition('entity_id', $id)
    ->execute();
}