function kaltura_create_widgets_for_partner in Kaltura 5
Same name and namespace in other branches
- 6.2 includes/kaltura.admin.inc \kaltura_create_widgets_for_partner()
- 6 includes/kaltura.admin.inc \kaltura_create_widgets_for_partner()
- 7.3 includes/kaltura.admin.inc \kaltura_create_widgets_for_partner()
- 7.2 includes/kaltura.admin.inc \kaltura_create_widgets_for_partner()
2 calls to kaltura_create_widgets_for_partner()
- kaltura_settings_form in includes/
kaltura.admin.inc - register_kaltura_partner in includes/
kaltura.admin.inc
File
- includes/
kaltura.admin.inc, line 142
Code
function kaltura_create_widgets_for_partner($partner_id, $secret) {
$session_user = KalturaHelpers::getSessionUser();
$kaltura_client = KalturaHelpers::getKalturaClient(1);
$widgets = new KalturaSettings();
foreach ($widgets->kdp_widgets as $type => $uiconfs) {
foreach ($uiconfs as $skin => $confs) {
$result = $kaltura_client
->getDefaultWidget($session_user, $confs['view_uiconf']);
$result = $kaltura_client
->getDefaultWidget($session_user, $confs['remix_uiconf']);
}
}
}