public function video_metadata::admin_settings in Video 6.4
Same name and namespace in other branches
- 7 includes/metadata.inc \video_metadata::admin_settings()
1 method overrides video_metadata::admin_settings()
- flvtool2::admin_settings in metadata/
flvtool2.inc
File
- includes/
metadata.inc, line 44
Class
Code
public function admin_settings() {
$form = array();
$form['video_metadata'] = array(
'#type' => 'checkbox',
'#title' => t('Enable Metadata'),
'#default_value' => variable_get('video_metadata', FALSE),
'#description' => t('Metadata is particularly useful in video, where information about its contents (such as transcripts of conversations and text descriptions of its scenes) are not directly understandable by a computer, but where efficient search is desirable.'),
);
$options = $this
->_metadata();
$form['vid_metadata'] = array(
'#type' => 'radios',
'#title' => t('Video Metadata'),
'#default_value' => variable_get('vid_metadata', 'flvtool2'),
'#options' => $options['radios'],
'#description' => t('!list', array(
'!list' => theme('item_list', $options['help']),
)),
'#prefix' => '<div id="metadata-radios">',
'#suffix' => '</div>',
);
$form = $form + $options['admin_settings'];
$form['video_metadata_dimensions'] = array(
'#type' => 'textarea',
'#title' => t('Selectable Dimensions when uploading videos'),
'#description' => t('Enter one dimension per line as Video Resolutions. Each resolution must be in the form of WxH where W=Width and H=Height in pixels. Example dimensions are 1280x720.'),
'#default_value' => variable_get("video_metadata_dimensions", video_default_dimensions()),
'#wysiwyg' => FALSE,
);
return $form;
}