function video_s3_video_update in Video 6.4
Same name and namespace in other branches
- 6.5 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 75 - 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);
}
}
}