You are here

function theme_fancybox_emvideo in fancyBox 6

Generate the HTML output to open a emvideo field in fancybox. Use the generic modal output from emvideo.

Note: if you are implementing a custom AJAX callback make sure that you wrap the output into a div where you set its dimensions, fancybox sometimes fails to detect the size of the embedded video if its wrapped into multiple divs.

Parameters

$field: The CCK field the action is being performed on.

$item: An array, keyed by column, of the data stored for this item in this field.

$formatter: The formatter to use for the field.

$node: The node object.

Return value

Themed modal dialogue of the embedded media field video.

File

./fancybox.theme.inc, line 69
Theme functions for Fancybox module.

Code

function theme_fancybox_emvideo($field, $item, $formatter, $node) {
  return theme('emvideo_modal_generic', $field, $item, $formatter, $node, array(
    'modal' => 'fancybox',
  ));
}