You are here

function theme_node_kaltura_mix_entryId in Kaltura 5

Same name and namespace in other branches
  1. 6.2 plugins/node_kaltura_mix/node_kaltura_mix.module \theme_node_kaltura_mix_entryId()
  2. 6 plugins/node_kaltura_mix/node_kaltura_mix.module \theme_node_kaltura_mix_entryId()
3 theme calls to theme_node_kaltura_mix_entryId()
kaltura_get_default_display in plugins/field_kaltura/field_kaltura.module
node_kaltura_mix_form in plugins/node_kaltura_mix/node_kaltura_mix.module
Implementation of hook_form().
node_kaltura_mix_view in plugins/node_kaltura_mix/node_kaltura_mix.module
Implementation of hook_view().

File

plugins/node_kaltura_mix/node_kaltura_mix.module, line 653

Code

function theme_node_kaltura_mix_entryId($node, $teaser) {
  $width = variable_get('kaltura_mix_width', '410');
  $height = variable_get('kaltura_mix_height', '364');
  if ($teaser && variable_get('kaltura_display_mix_teaser_with_player', 0) == 0) {
    return '';
  }
  if (WORK_WITH_KSHOW) {
    return '[kaltura-widget kid="' . $node->kaltura_entryId . '" size="large"  width="' . $width . '" height="' . $height . '" /]';
  }
  else {
    return '[kaltura-widget mix="' . $node->kaltura_entryId . '" size="large"  width="' . $width . '" height="' . $height . '" /]';
  }
}