function video_cron_admin_settings in Video 6.5
Same name and namespace in other branches
- 6.4 video.admin.inc \video_cron_admin_settings()
- 7 modules/video_ui/video.admin.inc \video_cron_admin_settings()
Video cron admin settings
1 string reference to 'video_cron_admin_settings'
- video_menu in ./
video.module - Implementation of hook_menu().
File
- ./
video.admin.inc, line 505
Code
function video_cron_admin_settings() {
$form = array();
$form['video_cron'] = array(
'#type' => 'checkbox',
'#title' => t('Use Drupals built in cron.'),
'#default_value' => variable_get('video_cron', TRUE),
'#description' => t('If you would like to use Drupals built in cron hook, check this box. Please be warned that transcoding videos is very resource intensive. If you use poor mans cron, I highly discourage this option. I also suggest you setup your cron to call this function through CLI instead of WGET.'),
);
$form['video_queue_batchsize'] = array(
'#type' => 'textfield',
'#title' => t('Total videos to convert during each cron process.'),
'#default_value' => variable_get('video_queue_batchsize', 5),
'#description' => t('How many videos do you want to process on each cron run? Either through Drupal cron, Drush or the video_scheduler.php.'),
);
return system_settings_form($form);
}