function editor_entity_delete in Editor 7
Implements hook_entity_delete().
File
- includes/
editor.file_usage.inc, line 40 - Tracks usage of embedded files.
Code
function editor_entity_delete($entity, $type) {
list($id, $vid, $bundle) = entity_extract_ids($type, $entity);
db_delete('file_usage')
->condition('module', 'editor')
->condition('type', $type)
->condition('id', $id)
->execute();
}