You are here

function filefield_meta_cron in FileField 6.3

Implementation of hook_cron().

File

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

Code

function filefield_meta_cron() {
  $result = db_query('SELECT fm.fid FROM {filefield_meta} fm LEFT JOIN {files} f ON fm.fid=f.fid WHERE f.fid IS NULL');
  while ($file = db_fetch_object($result)) {
    db_query('DELETE FROM {filefield_meta} WHERE fid = %d', $file->fid);
  }
}