diff options
author | Heshan <heshan@heidisoft.com> | 2011-05-01 20:54:48 +0530 |
---|---|---|
committer | Heshan <heshan@heidisoft.com> | 2011-05-01 20:54:48 +0530 |
commit | d0d4b273d990ec3869a09e2312a465d357d42d13 (patch) | |
tree | f87dd3e2798ed6f0a6dfa24b33b1329a04eeceda /modules/video_zencoder/video_zencoder.install | |
parent | 36875c328e1411215d4be4a5ce8d36a158359712 (diff) | |
download | video-d0d4b273d990ec3869a09e2312a465d357d42d13.tar.gz video-d0d4b273d990ec3869a09e2312a465d357d42d13.tar.bz2 |
Adding Zencoder module to the dev release.
Diffstat (limited to 'modules/video_zencoder/video_zencoder.install')
-rw-r--r-- | modules/video_zencoder/video_zencoder.install | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/modules/video_zencoder/video_zencoder.install b/modules/video_zencoder/video_zencoder.install new file mode 100644 index 0000000..2aa790b --- /dev/null +++ b/modules/video_zencoder/video_zencoder.install @@ -0,0 +1,90 @@ +<?php + +/** + * @file + * Provides installation functions for video_s3.module. + */ + +/** + * Implementation of hook_schema(). + */ +function video_zencoder_schema() { + $schema['video_zencoder'] = array( + 'description' => t('Store video S3 CDN and convert with zencoder webservice'), + 'fields' => array( + 'vid' => array( + 'description' => t('Auto Increment id'), + 'type' => 'serial', + 'unsigned' => TRUE, + 'not null' => TRUE, + ), + 'fid' => array( + 'description' => t('Original file id'), + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'default' => 0, + ), + 'nid' => array( + 'description' => t('Node id'), + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'default' => 0, + ), + 'jobid' => array( + 'description' => t('Job id'), + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'default' => 0, + ), + 'status' => array( + 'description' => t('Status of the cdn transfer'), + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'default' => 0, + ), + 'dimensions' => array( + 'type' => 'varchar', + 'length' => '255', + 'default' => '', + 'description' => t('The dimensions of the video.'), + ), + 'completed' => array( + 'description' => t('Time of successful completion to amazon.'), + 'type' => 'int', + 'not null' => TRUE, + 'default' => 0, + ), + 'data' => array( + 'type' => 'text', + 'not null' => FALSE, + 'size' => 'big', + 'description' => 'A serialized array of converted files. Use of this field is discouraged and it will likely disappear in a future version of Drupal.', + ), + ), + 'indexes' => array( + 'status' => array('status'), + 'file' => array('fid'), + ), + 'primary key' => array('vid'), + ); + return $schema; +} + +/** + * Implementation of hook_install(). + */ +function video_zencoder_install() { + // set the module weight to low since we need this to load later time than in S3 + db_query("UPDATE {system} SET weight = 50 WHERE name = 'video_zencoder'"); +} + +/** + * Implementation of hook_uninstall(). + */ +function video_zencoder_uninstall() { + +}
\ No newline at end of file |