You are here

function media_file_delete in D7 Media 7

Implements hook_file_delete().

File

./media.module, line 403
Media API

Code

function media_file_delete($file) {
  db_delete('media_filter_usage')
    ->condition('fid', $file->fid)
    ->execute();
}