You are here

function theme_node_kaltura_mix_entryId in Kaltura 6.2

Same name and namespace in other branches
  1. 5 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()
2 theme calls to theme_node_kaltura_mix_entryId()
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 921

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 . '" /]';
  }
}