function kaltura_test_notification_config in Kaltura 6
Same name and namespace in other branches
- 5 includes/kaltura.admin.inc \kaltura_test_notification_config()
- 6.2 includes/kaltura.admin.inc \kaltura_test_notification_config()
- 7.3 includes/kaltura.admin.inc \kaltura_test_notification_config()
- 7.2 includes/kaltura.admin.inc \kaltura_test_notification_config()
2 calls to kaltura_test_notification_config()
- kaltura_notifications_settings_form in includes/
kaltura.admin.inc - kaltura_settings_form in includes/
kaltura.admin.inc
File
- includes/
kaltura.admin.inc, line 713
Code
function kaltura_test_notification_config() {
if (kaltura_variable_get_real('kaltura_notification_status', 0) == 0) {
$session_user = KalturaHelpers::getSessionUser();
$kaltura_client = KalturaHelpers::getKalturaClient();
$result = $kaltura_client
->testNotification($session_user);
sleep(3);
}
if (kaltura_variable_get_real('kaltura_notification_status', 0) === 1) {
return array(
TRUE,
'Drupal server receives notification from Kaltura server.',
);
}
return array(
FALSE,
'Drupal server fails to receive notifications from Kaltura. Please fix your configuration or disable server notifications.',
);
}