diff options
author | glen201 <glen201@527446.no-reply.drupal.org> | 2009-07-31 02:01:53 +0000 |
---|---|---|
committer | glen201 <glen201@527446.no-reply.drupal.org> | 2009-07-31 02:01:53 +0000 |
commit | b66f50d2ce11d0cc8bb53af94ad86278d3fe8e51 (patch) | |
tree | 0a9b459d44a0d2729c479d5393e87cd94cb785f2 /types/video_upload | |
parent | 2524eecbeef2c8b3c0d80a5ffcde2604da50e30c (diff) | |
download | video-b66f50d2ce11d0cc8bb53af94ad86278d3fe8e51.tar.gz video-b66f50d2ce11d0cc8bb53af94ad86278d3fe8e51.tar.bz2 |
#486064: by RobertOak "no video fields in views" Fixed, added Views 2 support
.MPEG/MPG defaulted to play with Windows Media
Diffstat (limited to 'types/video_upload')
-rw-r--r-- | types/video_upload/video_upload.module | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/types/video_upload/video_upload.module b/types/video_upload/video_upload.module index 5ad1a83..004b7fe 100644 --- a/types/video_upload/video_upload.module +++ b/types/video_upload/video_upload.module @@ -400,7 +400,7 @@ function _video_upload_presave(&$node) { $file_field = 'video_upload_file'; } - // get extention array + // get extension array $extensions = explode(",",variable_get('video_upload_allowed_extensions', 'mov,flv,wmv')); $validators = array( @@ -409,7 +409,6 @@ function _video_upload_presave(&$node) { // TODO : add file size validation // 'file_validate_size' => array($limits['file_size'], $limits['user_size']), - //GMM: Fix hard-coded allowed extensions if (count($_POST) && $file = file_save_upload($file_field , array('file_validate_extensions' => array(implode(" ",$extensions))))) { // a file has been uploaded $node->new_video_upload_file = $file; |