You are here

public static function video_jobs::delete in Video 7.2

Delete transcoder job and its details from database.

@todo improve this method: not everything is deleted.

1 call to video_jobs::delete()
_video_field_file_autoconversion in ./video.field.inc
Video file save to the video_queue table for conversions

File

includes/jobs.inc, line 45
Static class containing transcoding job related operations.

Class

video_jobs
@file Static class containing transcoding job related operations.

Code

public static function delete($fid) {
  db_delete('video_queue')
    ->condition('fid', $fid)
    ->execute();
  db_delete('video_output')
    ->condition('original_fid', $fid)
    ->execute();
}