You are here

function video_cron in Video 6.4

Same name and namespace in other branches
  1. 6.5 video.module \video_cron()
  2. 7.2 video.module \video_cron()
  3. 7 video.module \video_cron()

Implmentation of hook_cron().

1 string reference to 'video_cron'
video_cron_admin_settings in ./video.admin.inc
Video cron admin settings

File

./video.module, line 281
video.module

Code

function video_cron() {
  if (variable_get('video_cron', TRUE)) {

    // This is a hack to execute S3 uploads before Zencoder
    $filesystem = variable_get('vid_filesystem', 'drupal');
    $transcoder = variable_get('vid_convertor', 'video_ffmpeg');
    if ($filesystem == 'video_s3' && $transcoder == 'video_zencoder') {
      video_s3_cron();
    }
    module_load_include('inc', 'video', '/includes/conversion');
    $video_conversion = new video_conversion();
    $video_conversion
      ->run_queue();
  }
}