You are here

function kaltura_forward_notification in Kaltura 7.2

Same name and namespace in other branches
  1. 5 includes/kaltura.notification.inc \kaltura_forward_notification()
  2. 6.2 includes/kaltura.notification.inc \kaltura_forward_notification()
  3. 6 includes/kaltura.notification.inc \kaltura_forward_notification()
  4. 7.3 includes/kaltura.notification.inc \kaltura_forward_notification()

Checks the notification type and forwards the notification to the appropriate function.

Some notification types, as described in kaltura API documentation, are not yet handled here.

1 call to kaltura_forward_notification()
kaltura_notification_handler in includes/kaltura.notification.inc
This is the callback function for the kaltura/notification_handler URL.

File

includes/kaltura.notification.inc, line 89
Contains functions for handling all notifications from kaltura.

Code

function kaltura_forward_notification($noti) {
  watchdog('kaltura notification handler', print_r($noti, TRUE));
  switch ($noti['notification_type']) {
    case 'entry_add':
      kaltura_notify_entry_add('entry', $noti);
      break;
    case 'kshow_add':
      kaltura_notify_entry_add('mix', $noti);
      break;
    case 'kshow_update_info':
      watchdog('KNH', 'notification of type kshow_update_info received<br />' . serialize($noti));
      break;
    case 'entry_update_thumbnail':
      kaltura_update_entry_thumbnail($noti);
      break;
    case 'entry_update':
      kaltura_notify_update($noti);
      break;
    case 'entry_delete':
      kaltura_notify_delete($noti);
      break;
    case 'entry_block':
      kaltura_notify_blocked($noti);
      break;
    case 'test':
      kaltura_test_notification_received();
      break;
  }
}