You are here

function get_entry_description in Kaltura 7.2

Same name and namespace in other branches
  1. 7.3 kaltura.module \get_entry_description()

Helper function to get the description field from kaltura after notification.

Parameters

$type:

$entry_id:

File

./kaltura.module, line 701
Kaltura integration module - core functions.

Code

function get_entry_description($type, $entry_id) {
  $k_helpers = new KalturaHelpers();
  try {
    $kaltura_client = $k_helpers
      ->getKalturaClient(true);
    if ($type == 6) {
      $result = $kaltura_client->mixing
        ->get($entry_id);
      return $result->description;
    }
    else {
      $result = $kaltura_client->baseEntry
        ->get($entry_id);
      return $result->description;
    }
  } catch (Exception $e) {
    watchdog_exception('kaltura', $e);
  }
}