You are here

function theme_emvideo_video_replace in Embedded Media Field 6.2

Same name and namespace in other branches
  1. 6.3 contrib/emvideo/emvideo.theme.inc \theme_emvideo_video_replace()
  2. 6 contrib/emvideo/emvideo.theme.inc \theme_emvideo_video_replace()
1 theme call to theme_emvideo_video_replace()
theme_emthumb_imagecache_formatter_full in contrib/emthumb/emthumb.theme.inc
Returns the imagecache image linked to a full media display.

File

contrib/emvideo/emvideo.theme.inc, line 310
This defines the various theme functions for Embedded Video Field (emvideo).

Code

function theme_emvideo_video_replace($field, $item, $formatter, $node, $options = array()) {
  $options['modal'] = 'emvideo';
  $options['width'] = isset($options['width']) ? $options['width'] : $field['widget']['video_width'];
  $options['height'] = isset($options['height']) ? $options['height'] : $field['widget']['video_height'];
  $options['wrapper-class'] = isset($options['wrapper-class']) ? $options['wrapper-class'] . ' emvideo-thumbnail-replace-full' : 'emvideo-thumbnail-replace-full';
  return theme('emvideo_modal_generic', $field, $item, $formatter, $node, $options);
}