function kaltura_simple_editor in Kaltura 5
Same name and namespace in other branches
- 6.2 includes/kaltura.themeing.inc \kaltura_simple_editor()
- 6 includes/kaltura.themeing.inc \kaltura_simple_editor()
1 string reference to 'kaltura_simple_editor'
File
- includes/
kaltura.themeing.inc, line 373
Code
function kaltura_simple_editor() {
$args = func_get_args();
$kshow_id = $args[0];
$type = $args[1];
$partner_data = $args[2] != 'empty_partner_data' ? $args[2] : '';
$no_refresh = $args[3] == 'no_refresh' ? TRUE : FALSE;
if (WORK_WITH_KSHOW) {
$kaltura_client = KalturaHelpers::getKalturaClient(FALSE, "edit:" . $kshow_id);
}
else {
$kaltura_client = KalturaHelpers::getKalturaClient(FALSE, "edit:*");
}
if (!$kaltura_client) {
drupal_set_message('Failed to start Kaltura session. Please check your settings.', 'warning');
echo theme_kaltura_maintenance_page("<br /><a href=\"#\" onclick=\"window.top.kalturaCloseModalBox()\">Close</a>", TRUE);
exit;
}
$theme_params->height = 546;
$theme_params->width = 890;
$theme_params->swfUrl = KalturaHelpers::getSimpleEditorUrl();
$flash_vars = KalturaHelpers::getSimpleEditorFlashVars($kaltura_client
->getKs(), $kshow_id, $type, $partner_data);
$theme_params->flashVarsStr = KalturaHelpers::flashVarsToString($flash_vars);
echo theme('simple_editor', $theme_params, $no_refresh);
exit;
}