You are here

function kaltura_playlist_insert in Kaltura 6

Same name and namespace in other branches
  1. 5 plugins/kaltura_playlist/kaltura_playlist.module \kaltura_playlist_insert()
  2. 6.2 plugins/kaltura_playlist/kaltura_playlist.module \kaltura_playlist_insert()

Implementation of hook_insert().

1 call to kaltura_playlist_insert()
kaltura_populate_nodes in plugins/kaltura_playlist/kaltura_playlist.install

File

plugins/kaltura_playlist/kaltura_playlist.module, line 163

Code

function kaltura_playlist_insert(&$node) {
  watchdog('playlist', 'node created ' . print_r($node, TRUE));
  $sql = 'INSERT INTO {node_kaltura_playlist} (vid, nid, playlist_view) VALUES(%d, %d, \'%s\')';
  db_query($sql, $node->vid, $node->nid, $node->playlist_view);
}