function video_general_admin_settings in Video 6.5
Same name and namespace in other branches
- 6.4 video.admin.inc \video_general_admin_settings()
- 7.2 modules/video_ui/video.admin.inc \video_general_admin_settings()
- 7 modules/video_ui/video.admin.inc \video_general_admin_settings()
Video general admin settings
1 string reference to 'video_general_admin_settings'
- video_menu in ./
video.module - Implementation of hook_menu().
File
- ./
video.admin.inc, line 11
Code
function video_general_admin_settings() {
$form = array();
$form['video_autoplay'] = array(
'#type' => 'checkbox',
'#title' => t('Automatically start video on page load'),
'#default_value' => variable_get('video_autoplay', FALSE),
'#description' => t('Start the video when the page and video loads'),
);
$form['video_autobuffering'] = array(
'#type' => 'checkbox',
'#title' => t('Automatically start video buffering'),
'#default_value' => variable_get('video_autobuffering', TRUE),
'#description' => t('Start buffering video when the page and video loads'),
);
$form['video_bypass_conversion'] = array(
'#type' => 'checkbox',
'#title' => t('Bypass auto conversion by default'),
'#default_value' => variable_get('video_bypass_conversion', FALSE),
'#description' => t('Bypass video conversion when creating videos. This setting can be overriden by users with the %perm permission.', array(
'%checkbox' => t('Bypass auto conversion'),
'%perm' => t('bypass conversion video'),
)),
);
$form['video_convert_on_save'] = array(
'#type' => 'checkbox',
'#title' => t('Video convert on node submit'),
'#default_value' => variable_get('video_convert_on_save', FALSE),
'#description' => t('Convert videos on node submit.'),
);
$form['video_use_default_thumb'] = array(
'#type' => 'checkbox',
'#title' => t('Override auto thumbnails with default'),
'#default_value' => variable_get('video_use_default_thumb', FALSE),
'#description' => t('Override auto thumbnails with default thumbnail.'),
);
$form['video_dimensions'] = array(
'#type' => 'textarea',
'#title' => t('Available dimensions when uploading videos'),
'#description' => t('Enter one dimension per line. Each resolution must be in the form of <code>width</code>x<code>height</code>. Example dimensions: <code>1280x720</code>.'),
'#default_value' => variable_get('video_dimensions', video_default_dimensions()),
'#wysiwyg' => FALSE,
);
return system_settings_form($form);
}