You are here

function video_s3_video_update in Video 6.5

Same name and namespace in other branches
  1. 6.4 plugins/video_s3/video_s3.module \video_s3_video_update()

Implementation of hook_video_update().

Submit handler to update our s3 table to include the node id.

File

plugins/video_s3/video_s3.module, line 26
Provides wrapper functions for the s3 amazon webservices.

Code

function video_s3_video_update($form, &$form_state) {

  // Lets update our video rending table to include the node id created
  if (isset($form_state['nid']) && isset($form_state['values']['video_id']) && is_array($form_state['values']['video_id'])) {
    foreach ($form_state['values']['video_id'] as $fid) {

      // Lets update our table to include the nid
      db_query('UPDATE {video_s3} SET nid = %d WHERE fid = %d', $form_state['nid'], $fid);
    }
  }
}