function brightcove_media_file_formatter_video_settings in Brightcove Video Connect 7.3
Same name and namespace in other branches
- 7.7 brightcove_media/brightcove_media.module \brightcove_media_file_formatter_video_settings()
- 7.2 brightcove_media/brightcove_media.module \brightcove_media_file_formatter_video_settings()
- 7.4 brightcove_media/brightcove_media.module \brightcove_media_file_formatter_video_settings()
- 7.6 brightcove_media/brightcove_media.module \brightcove_media_file_formatter_video_settings()
The brightcove_media_video file formatter settings callback.
_state
Parameters
$form:
$settings:
Return value
array
1 string reference to 'brightcove_media_file_formatter_video_settings'
- brightcove_media_file_formatter_info in brightcove_media/
brightcove_media.module - Implements hook_file_formatter_info().
File
- brightcove_media/
brightcove_media.module, line 178
Code
function brightcove_media_file_formatter_video_settings($form, $form_state, $settings) {
$element = array();
$element['player'] = array(
'#title' => t('Player'),
'#type' => 'radios',
'#options' => brightcove_player_list(),
'#default_value' => isset($settings['player']) ? $settings['player'] : '',
);
$element['width'] = array(
'#title' => t('Player Width'),
'#type' => 'textfield',
'#default_value' => isset($settings['width']) ? $settings['width'] : '',
);
$element['height'] = array(
'#title' => t('Player Height'),
'#type' => 'textfield',
'#default_value' => isset($settings['height']) ? $settings['height'] : '',
);
return $element;
}