You are here

function drush_video_scheduler in Video 6.4

Same name and namespace in other branches
  1. 6.5 video.drush.inc \drush_video_scheduler()
  2. 7.2 video.drush.inc \drush_video_scheduler()
  3. 7 video.drush.inc \drush_video_scheduler()
1 string reference to 'drush_video_scheduler'
video_drush_command in ./video.drush.inc
Implementation of hook_drush_command().

File

./video.drush.inc, line 21

Code

function drush_video_scheduler() {
  $limit = (int) drush_get_option('limit', variable_get('video_ffmpeg_instances', 5));
  $GLOBALS['conf']['video_ffmpeg_instances'] = $limit;

  // Initialize the theme so it does not initialize during the script,
  // when the working directory may have been changed.
  init_theme();

  // include our conversion class (also contains our defines)
  module_load_include('inc', 'video', 'includes/conversion');
  $video_conversion = new video_conversion();
  $video_conversion
    ->run_queue();
}