You are here

function file_entity_file_delete in File Entity (fieldable files) 7

Same name and namespace in other branches
  1. 7.3 file_entity.file.inc \file_entity_file_delete()
  2. 7.2 file_entity.file.inc \file_entity_file_delete()

Implements hook_file_delete().

File

./file_entity.module, line 299
Extends Drupal file entities to be fieldable and viewable.

Code

function file_entity_file_delete($file) {
  field_attach_delete('file', $file);
}