public function video_preset::admin_settings in Video 6.4
Same name and namespace in other branches
- 7 includes/preset.inc \video_preset::admin_settings()
File
- includes/
preset.inc, line 17
Class
Code
public function admin_settings() {
$form = array();
$presets = $this
->getAllPresets();
$options = array();
$help = array();
foreach ($presets as $preset) {
$options[$preset
->get_value()] = check_plain($preset
->get_name());
$helptext = $preset
->get_help();
if (!empty($helptext)) {
$help[] = check_plain($preset
->get_name()) . ': ' . $helptext;
}
}
$form['vid_preset'] = array(
'#type' => 'checkboxes',
'#title' => t('Video transcode presets'),
'#options' => $options,
'#default_value' => $this->presets,
'#description' => theme('item_list', $help),
'#required' => TRUE,
);
return $form;
}