You are here

function kaltura_notify_entry_add in Kaltura 7.2

Same name and namespace in other branches
  1. 7.3 includes/kaltura.notification.inc \kaltura_notify_entry_add()

Adds entry to the kaltura table via notification.

Parameters

mixed $type:

mixed $notification_data:

1 call to kaltura_notify_entry_add()
kaltura_forward_notification in includes/kaltura.notification.inc
Checks the notification type and forwards the notification to the appropriate function.

File

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

Code

function kaltura_notify_entry_add($type, $notification_data) {
  $entry = kaltura_mk_karray($notification_data);

  // We have no way to figure out when the entry was created on the KMC
  // so the create date is when we received the notification.
  $entry['kaltura_created_date'] = REQUEST_TIME;
  db_insert('node_kaltura')
    ->fields($entry)
    ->execute();
}