You are here

function file_entity_file_update in D7 Media 7

Implement hook_file_update().

File

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

Code

function file_entity_file_update($file) {
  field_attach_update('file', $file);

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