function video_general_admin_settings in Video 6.4
Same name and namespace in other branches
- 6.5 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
Return value
<type>
1 string reference to 'video_general_admin_settings'
- video_menu in ./
video.module - Implementation of hook_menu().
File
- ./
video.admin.inc, line 45
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.'),
);
return system_settings_form($form);
}