function emwave_embed_form in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emwave/emwave.module \emwave_embed_form()
- 6.2 contrib/emwave/emwave.module \emwave_embed_form()
1 string reference to 'emwave_embed_form'
- theme_emwave_wave_embed in contrib/
emwave/ emwave.theme.inc
File
- contrib/
emwave/ emwave.module, line 313 - Embedded Wave module is a handler for waves hosted on an external site.
Code
function emwave_embed_form($field, $item, $formatter, $node) {
$embed = $item['value'];
$width = $field['widget']['full_width'];
$height = $field['widget']['full_height'];
$text = module_invoke('emfield', 'include_invoke', 'emwave', $item['provider'], 'wave_full', $embed, $width, $height, $field, $item);
$form = array();
$form['emwave_embed'] = array(
'#type' => 'textarea',
'#title' => t('Wave Id'),
'#description' => t('To embed this wave on your own site, simply copy and paste the html code from this text area.'),
'#default_value' => $text,
);
return $form;
}