You are here

function node_kaltura_entry_view in Kaltura 5

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

Implementation of hook_view().

File

plugins/node_kaltura_entry/node_kaltura_entry.module, line 540

Code

function node_kaltura_entry_view($node, $teaser = FALSE, $page = FALSE) {
  $node = node_prepare($node, $teaser);
  $node->content['kaltura_tags'] = array(
    '#value' => theme('node_kaltura_entry_tags', $node),
    '#weight' => 1,
  );
  $node->content['kaltura_admin_tags'] = array(
    '#value' => theme('node_kaltura_entry_admin_tags', $node),
    '#weight' => 6,
  );
  if ($node->kaltura_entryId) {
    $node->content['kaltura_entry'] = array(
      '#value' => theme('node_kaltura_entry_entryId', $node, $teaser),
      '#weight' => 7,
    );
  }
  $node->content['kaltura_thumbnail_url'] = array(
    '#value' => theme('node_kaltura_entry_thumbnail_url', $node, $teaser),
    '#weight' => 0,
  );
  return $node;
}