You are here

function video_embed_youku_form in Video Embed Youku 7

Defines the form elements for the Youku videos configuration form.

Parameters

array $defaults: The form default values.

Return value

array The provider settings form array.

1 string reference to 'video_embed_youku_form'
video_embed_youku_video_embed_handler_info in ./video_embed_youku.module
Implements hook_video_embed_handler_info().

File

./video_embed_youku.module, line 45
Adds a handler for Youku videos to Video Embed Field.

Code

function video_embed_youku_form($defaults) {
  $form = array();
  $form['width'] = array(
    '#type' => 'textfield',
    '#title' => t('Player Width'),
    '#description' => t('The width of the player.'),
    '#default_value' => $defaults['width'],
  );
  $form['height'] = array(
    '#type' => 'textfield',
    '#title' => t('Player Height'),
    '#description' => t('The height of the player.'),
    '#default_value' => $defaults['height'],
  );
  return $form;
}