You are here

function kaltura_get_full_display in Kaltura 5

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

File

plugins/field_kaltura/field_kaltura.module, line 140
kaltura integration module - functions to provide kaltura as CCK field

Code

function kaltura_get_full_display($item, $teaser) {
  $entries = explode(',', rtrim($item['value'], ','));
  $all_field = '';
  if (is_array($entries) && count($entries)) {
    foreach ($entries as $entry_id) {
      if (!$entry_id) {
        continue;
      }
      $mynode = node_load(kaltura_get_node_for_mix($entry_id));
      if ($mynode) {
        $all_field .= node_view($mynode);
      }
    }
  }
  $text = $all_field;
  return $text;
}