You are here

function views_handler_field_kaltura_thumb::theme in Kaltura 6

File

plugins/kaltura_views/kaltura_views.module, line 273

Class

views_handler_field_kaltura_thumb

Code

function theme($data) {
  $node = new stdClass();
  $node->kaltura_thumbnail_url = $data->node_kaltura_kaltura_thumbnail_url;
  $node->nid = $data->nid;
  $node->link_thumb = TRUE;
  list($kaltura_type, $kaltura_media_type, $kstatus) = $this
    ->kaltura_get_node_type($node->nid);
  $node->kaltura_media_type = $kaltura_media_type;
  $node->kstatus = $kstatus;
  $size = array();
  $size['width'] = $this->options['thumbnail_width'];
  $size['height'] = $this->options['thumbnail_height'];
  if ($kaltura_type == 'kaltura_mix') {
    return theme('node_kaltura_mix_thumbnail_url', $node, $teaser = TRUE, FALSE, $size);
  }
  else {
    return theme('node_kaltura_entry_thumbnail_url', $node, $teaser = TRUE, FALSE, $size);
  }
}