function video_embed_facebook_form in Video Embed Field 7.2
Defines the form elements for the Facebook videos configuration form.
Parameters
array $defaults: The form default values.
Return value
array The provider settings form array.
1 string reference to 'video_embed_facebook_form'
- video_embed_facebook_video_embed_handler_info in video_embed_facebook/
video_embed_facebook.module - Implements hook_video_embed_handler_info().
File
- video_embed_facebook/
video_embed_facebook.module, line 44 - Adds a handler for Facebook videos to Video Embed Field.
Code
function video_embed_facebook_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'],
);
$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;
}