function drush_video_scheduler in Video 7
Same name and namespace in other branches
- 6.5 video.drush.inc \drush_video_scheduler()
- 6.4 video.drush.inc \drush_video_scheduler()
- 7.2 video.drush.inc \drush_video_scheduler()
Callback function
1 string reference to 'drush_video_scheduler'
- video_drush_command in ./
video.drush.inc - Implementation of hook_drush_command().
File
- ./
video.drush.inc, line 27 - Implement an drush commands to trasncode videos.
Code
function drush_video_scheduler() {
$limit = (int) drush_get_option('limit', variable_get('video_ffmpeg_instances', 5));
$GLOBALS['conf']['video_ffmpeg_instances'] = $limit;
// include our conversion class (also contains our defines)
module_load_include('inc', 'video', 'includes/conversion');
$video_conversion = new video_conversion();
$video_conversion
->run_queue();
}