function kaltura_create_widgets_for_partner in Kaltura 6
Same name and namespace in other branches
- 5 includes/kaltura.admin.inc \kaltura_create_widgets_for_partner()
- 6.2 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 146
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']);
}
}
}