function theme_emvideo_video_replace_preview in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emvideo/emvideo.theme.inc \theme_emvideo_video_replace_preview()
- 6.2 contrib/emvideo/emvideo.theme.inc \theme_emvideo_video_replace_preview()
1 theme call to theme_emvideo_video_replace_preview()
- theme_emthumb_imagecache_formatter_preview in contrib/
emthumb/ emthumb.theme.inc - Returns the imagecache image linked to a preview media display.
File
- contrib/
emvideo/ emvideo.theme.inc, line 274 - This defines the various theme functions for Embedded Video Field (emvideo).
Code
function theme_emvideo_video_replace_preview($field, $item, $formatter, $node, $options = array()) {
$options['modal'] = 'emvideo';
$options['width'] = isset($options['width']) ? $options['width'] : $field['widget']['preview_width'];
$options['height'] = isset($options['height']) ? $options['height'] : $field['widget']['preview_height'];
$options['wrapper-class'] = isset($options['wrapper-class']) ? $options['wrapper-class'] . ' emvideo-thumbnail-replace-preview' : 'emvideo-thumbnail-replace-preview';
return theme('emvideo_modal_generic', $field, $item, $formatter, $node, $options);
}