You are here

function file_entity_file_insert in D7 Media 7

Implements hook_file_insert().

File

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

Code

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

  // Get and store image dimensions.
  file_entity_image_dimensions($file, TRUE);
}