You are here

function video_s3_video_delete in Video 6.4

Implementation of hook_video_delete. we can use hook_file_delete()

File

plugins/video_s3/video_s3.module, line 63
Provides wrapper functions for the s3 amazon webservices.

Code

function video_s3_video_delete($file) {
  module_load_include('lib.inc', 'video_s3');
  $s3 = new video_amazon_s3();
  $s3
    ->connect();

  // Lets run our queue.
  $s3
    ->delete($file->fid);
}