diff options
author | Heshan <heshan@heidisoft.com> | 2011-03-14 19:14:50 +0530 |
---|---|---|
committer | Heshan <heshan@heidisoft.com> | 2011-03-14 19:14:50 +0530 |
commit | 0d300315ee1144b50bdf666f364cd02dceb2e5cf (patch) | |
tree | 04f10c406652bcc9327dd924511feba8cc04f330 /video.drush.inc | |
parent | fbf8a0a295104d0c4d7060c53c2c51330a355d28 (diff) | |
download | video-0d300315ee1144b50bdf666f364cd02dceb2e5cf.tar.gz video-0d300315ee1144b50bdf666f364cd02dceb2e5cf.tar.bz2 |
Adding cron queue to the video schedular
Diffstat (limited to 'video.drush.inc')
-rw-r--r-- | video.drush.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/video.drush.inc b/video.drush.inc index bcb03ee..8c01f6d 100644 --- a/video.drush.inc +++ b/video.drush.inc @@ -5,7 +5,7 @@ */ function video_drush_command() { $items = array(); - + $items['video-scheduler'] = array( 'description' => 'Run video transcoder scheduler', 'callback' => 'drush_video_scheduler', @@ -14,10 +14,13 @@ function video_drush_command() { '--limit' => 'Change the number of video items to transcode', ), ); - + return $items; } +/** + * Callback function + */ function drush_video_scheduler() { $limit = (int) drush_get_option('limit', variable_get('video_ffmpeg_instances', 5)); $GLOBALS['conf']['video_ffmpeg_instances'] = $limit; |