function kaltura_fetch_widget_html in Kaltura 5
Same name and namespace in other branches
- 6.2 kaltura.module \kaltura_fetch_widget_html()
1 call to kaltura_fetch_widget_html()
File
- ./
kaltura.module, line 466
Code
function kaltura_fetch_widget_html($widget_id) {
$session_user = KalturaHelpers::getSessionUser();
$kaltura_client = KalturaHelpers::getKalturaClient();
$result = $kaltura_client
->getWidget($session_user, $widget_id, 1);
$embbed = $result['result']['widget']['widgetHtml'];
return $embbed;
}