You are here

function brightcove_media_file_formatter_video_settings in Brightcove Video Connect 7.7

Same name and namespace in other branches
  1. 7.2 brightcove_media/brightcove_media.module \brightcove_media_file_formatter_video_settings()
  2. 7.3 brightcove_media/brightcove_media.module \brightcove_media_file_formatter_video_settings()
  3. 7.4 brightcove_media/brightcove_media.module \brightcove_media_file_formatter_video_settings()
  4. 7.6 brightcove_media/brightcove_media.module \brightcove_media_file_formatter_video_settings()

The brightcove_media_video file formatter settings callback.

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 369
This module provide the hook implementations for the integration with Media module.

Code

function brightcove_media_file_formatter_video_settings($form, $form_state, $settings) {
  $element = [];
  $element['player'] = [
    '#title' => t('Player'),
    '#type' => 'radios',
    '#options' => brightcove_player_list(),
    '#default_value' => isset($settings['player']) ? $settings['player'] : '',
  ];
  $element['width'] = [
    '#title' => t('Player Width'),
    '#type' => 'textfield',
    '#default_value' => isset($settings['width']) ? $settings['width'] : '',
  ];
  $element['height'] = [
    '#title' => t('Player Height'),
    '#type' => 'textfield',
    '#default_value' => isset($settings['height']) ? $settings['height'] : '',
  ];
  return $element;
}