diff options
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; |