You are here

function video_embed_brightcove_form in Video Embed Field 7.2

Form to configure out video settings.

Parameters

array $defaults: Values for your provider.

Return value

array A form as defined by form API.

1 string reference to 'video_embed_brightcove_form'
video_embed_brightcove_video_embed_handler_info in video_embed_brightcove/video_embed_brightcove.module
Implements hook_video_embed_handler_info().

File

video_embed_brightcove/video_embed_brightcove.module, line 43
Add a handler for brightcove videos to Video Embed Field.

Code

function video_embed_brightcove_form($defaults) {
  $form = array();

  // Element for the width of the player.
  $form['width'] = array(
    '#type' => 'textfield',
    '#title' => t('Player Width'),
    '#description' => t('The width of the player.'),
    '#default_value' => $defaults['width'],
  );

  // Element for the height of the player.
  $form['height'] = array(
    '#type' => 'textfield',
    '#title' => t('Player Height'),
    '#description' => t('The height of the player.'),
    '#default_value' => $defaults['height'],
  );
  $form['class'] = array(
    '#type' => 'textfield',
    '#title' => t('Player CSS class'),
    '#description' => t('CSS class to add to the player'),
    '#default_value' => $defaults['class'],
  );
  return $form;
}