You are here

function node_kaltura_mix_view in Kaltura 5

Same name and namespace in other branches
  1. 6.2 plugins/node_kaltura_mix/node_kaltura_mix.module \node_kaltura_mix_view()
  2. 6 plugins/node_kaltura_mix/node_kaltura_mix.module \node_kaltura_mix_view()

Implementation of hook_view().

File

plugins/node_kaltura_mix/node_kaltura_mix.module, line 623

Code

function node_kaltura_mix_view($node, $teaser = FALSE, $page = FALSE) {
  $node = node_prepare($node, $teaser);
  $node->content['kaltura_tags'] = array(
    '#value' => theme('node_kaltura_mix_tags', $node),
    '#weight' => 1,
  );
  $node->content['kaltura_admin_tags'] = array(
    '#value' => theme('node_kaltura_mix_admin_tags', $node),
    '#weight' => 6,
  );

  // in KShow - entryId = kshowId
  if ($node->kaltura_entryId) {
    $node->content['kaltura_entry'] = array(
      '#value' => theme('node_kaltura_mix_entryId', $node, $teaser),
      '#weight' => 7,
    );
  }
  $node->content['kaltura_thumbnail_url'] = array(
    '#value' => theme('node_kaltura_mix_thumbnail_url', $node, $teaser),
    '#weight' => 0,
  );
  return $node;
}