function video_cck_embed_form in Embedded Media Field 5
1 string reference to 'video_cck_embed_form'
- theme_video_cck_video_embed in contrib/
video_cck/ video_cck.module
File
- contrib/
video_cck/ video_cck.module, line 294
Code
function video_cck_embed_form($field, $item, $formatter, $node, $options = array()) {
$embed = $item['value'];
$width = $options['width'] ? $options['width'] : $field['widget']['video_width'];
$height = $options['height'] ? $options['height'] : $field['widget']['video_height'];
$autoplay = $options['autoplay'] ? $options['autoplay'] : $field['widget']['video_autoplay'];
$text = module_invoke('emfield', 'include_invoke', 'video_cck', $item['provider'], 'video', $embed, $width, $height, $field, $item, $autoplay);
$form = array();
$form['video_cck_embed'] = array(
'#type' => 'textarea',
'#title' => t('Embed Code'),
'#description' => t('To embed this video on your own site, simply copy and paste the html code from this text area.'),
'#default_value' => $text,
);
return $form;
}