function video_default_instance_settings in Video 7
Field instances settings
Parameters
<type> $widget:
Return value
<type>
1 call to video_default_instance_settings()
- video_field_instance_settings_form in ./
video.field.inc - Implements hook_field_instance_settings_form().
File
- ./
video.module, line 557
Code
function video_default_instance_settings($widget) {
$form = array();
// Default video settings.
$form['default_dimensions'] = array(
'#type' => 'select',
'#title' => t('Default Video Resolution Dimensions'),
'#default_value' => !empty($widget['default_dimensions']) ? $widget['default_dimensions'] : '',
'#options' => video_explode("\n", variable_get("video_metadata_dimensions", video_default_dimensions())),
'#description' => t('Default transcoding resolution WIDTHxHEIGHT, in px, that FFMPEG will use to transcode your video files.'),
'#weight' => 15,
);
$form['default_player_dimensions'] = array(
'#type' => 'select',
'#title' => t('Default Video Player Dimensions'),
'#default_value' => !empty($widget['default_player_dimensions']) ? $widget['default_player_dimensions'] : '',
'#options' => video_explode("\n", variable_get("video_metadata_dimensions", video_default_dimensions())),
'#description' => t('Default player WIDTHxHEIGHT in px. This is your actual player dimensions that your video will be playing in.'),
'#weight' => 16,
);
return $form;
}