function theme_video_cck_video_embed in Embedded Media Field 5
File
- contrib/
video_cck/ video_cck.module, line 326
Code
function theme_video_cck_video_embed($field, $item, $formatter, $node, $options = array()) {
/*
Note you can use this in node.tpl.php, substituting the proper field type:
$field_type = 'field_video';
$system_types = _content_type_info();
$field = $system_types['fields'][$field_type];
$field['widget'] = $system_types['content types'][$node->type]['fields'][$field_type]['widget'];
print theme('video_cck_video_embed', $field, $node->{$field_type}[0], 'video_cck_embed', $node);
or you can set $field to NULL and just use the options array
*/
if ($item['value'] && $item['provider']) {
$output = drupal_get_form('video_cck_embed_form', $field, $item, $formatter, $node, $options);
}
return $output;
}