| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Implementation of hook_drush_command(). 5 */ 6 function video_drush_command() { 7 $items = array(); 8 9 $items['video-scheduler'] = array( 10 'description' => 'Run video transcoder scheduler', 11 'callback' => 'drush_video_scheduler', 12 'drupal dependencies' => array('video'), 13 'options' => array( 14 '--limit' => 'Change the number of video items to transcode', 15 ), 16 ); 17 18 return $items; 19 } 20 21 function drush_video_scheduler() { 22 $limit = (int) drush_get_option('limit', variable_get('video_ffmpeg_instances', 5)); 23 $GLOBALS['conf']['video_ffmpeg_instances'] = $limit; 24 25 // Initialize the theme so it does not initialize during the script, 26 // when the working directory may have been changed. 27 init_theme(); 28 29 // include our conversion class (also contains our defines) 30 module_load_include('inc', 'video', 'includes/conversion'); 31 $video_conversion = new video_conversion; 32 $video_conversion->run_queue(); 33 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |