You are here

function getid3_file_load in getID3() 7

Implements hook_file_load().

File

./getid3.module, line 181

Code

function getid3_file_load($files) {

  // Add the upload specific data into the file object.
  $result = db_query('SELECT * FROM {getid3_meta} u WHERE u.fid IN (:fids)', array(
    ':fids' => array_keys($files),
  ))
    ->fetchAll(PDO::FETCH_ASSOC);
  foreach ($result as $record) {
    $files[$record['fid']]->getid3 = $record;
  }
}