Parent Directory
|
Revision Log
|
Revision Graph
|
Patch
| revision 1.69.4.15, Sat Nov 7 17:00:15 2009 UTC | revision 1.69.4.16, Sun Nov 8 15:41:54 2009 UTC | |
|---|---|---|
| # | Line 1 | Line 1 |
| 1 | <?php | <?php |
| 2 | //$Id: video.module,v 1.69.4.14 2009/10/08 16:47:53 heshanmw Exp $ | //$Id: video.module,v 1.69.4.15 2009/11/07 17:00:15 heshanmw Exp $ |
| 3 | /** | /** |
| 4 | * @file video.module | * @file video.module |
| 5 | * | * |
| # | Line 829 function video_validate($node, $form = a | Line 829 function video_validate($node, $form = a |
| 829 | /** | /** |
| 830 | * Implementation of hook submit | * Implementation of hook submit |
| 831 | */ | */ |
| 832 | function video_presave(&$node) { | function video_submit(&$node) { |
| 833 | if(video_support_autoresolution($node) && ($node->new_video_upload_file_fid)) { // vtype support autoresolution getting | if(video_support_autoresolution($node) && ($node->new_video_upload_file_fid)) { // vtype support autoresolution getting |
| 834 | $xy = module_invoke('video_' . $node->vtype, 'v_auto_resolution', $node); | $xy = module_invoke('video_' . $node->vtype, 'v_auto_resolution', $node); |
| 835 | if ($xy) { | if ($xy) { |
| # | Line 876 function video_presave(&$node) { | Line 876 function video_presave(&$node) { |
| 876 | */ | */ |
| 877 | function video_insert($node) { | function video_insert($node) { |
| 878 | // set the required properties of the video node | // set the required properties of the video node |
| 879 | video_presave($node); | // video_presave($node); |
| 880 | $node->serialized_data = serialize($node->serial_data); //Serialize the data for insertion into the database. | $node->serialized_data = serialize($node->serial_data); //Serialize the data for insertion into the database. |
| 881 | ||
| 882 | return db_query("INSERT INTO {video} (vid, nid, vtype, vidfile, size, videox, videoy, video_bitrate, audio_bitrate, audio_sampling_rate, audio_channels, playtime_seconds, disable_multidownload, download_folder, use_play_folder, serialized_data) VALUES (%d, %d, '%s', '%s', %d, %d, %d, %d, %d, %d, '%s', %d, %d, '%s', %d, '%s')", | return db_query("INSERT INTO {video} (vid, nid, vtype, vidfile, size, videox, videoy, video_bitrate, audio_bitrate, audio_sampling_rate, audio_channels, playtime_seconds, disable_multidownload, download_folder, use_play_folder, serialized_data) VALUES (%d, %d, '%s', '%s', %d, %d, %d, %d, %d, %d, '%s', %d, %d, '%s', %d, '%s')", |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |