You are here

function filefield_meta_file_insert in FileField 6.3

Implementation of FileField's hook_file_insert().

2 calls to filefield_meta_file_insert()
filefield_meta_file_load in filefield_meta/filefield_meta.module
Implementation of FileField's hook_file_load().
filefield_meta_file_update in filefield_meta/filefield_meta.module
Implementation of FileField's hook_file_update().

File

filefield_meta/filefield_meta.module, line 75
FileField Meta: Add Video Support to File Field.

Code

function filefield_meta_file_insert(&$file) {
  if (!empty($file->fid)) {
    filefield_meta($file);
    $record = array_merge($file->data, array(
      'fid' => $file->fid,
    ));
    drupal_write_record('filefield_meta', $record);
  }
}