You are here

function file_entity_file_insert in File Entity (fieldable files) 7

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

Implements hook_file_insert().

File

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

Code

function file_entity_file_insert($file) {
  field_attach_insert('file', $file);
}