Closed (fixed)
Project:
Web File Manager
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2009 at 14:26 UTC
Updated:
19 Nov 2010 at 00:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
vallab444 commentedtom, thanks! I couldn't have changed my file download method. your patch saved me!
Comment #2
tom.vda commentedPrivate download will also require the implementation of hook_file_download() in the webfm module. It seems I forgot to submit this patch last time, but I already added a quick implementation of hook_file_download() which is more or less a copy of webfm_send_file().
This code code be optimized by moving the duplicate code to separate functions.
Comment #3
nhck commentedTom- thank you for submitting this patch and helping to make webfm better. I am sorry that your patch got neglected this long. I am currently reviewing this. Maybe someone else can also chime in?
Comment #4
nhck commentedA patch implementing hook_file_download can be found attached. Please test it. I don't want it to go into cvs before its not properly tested.
Changes with this patch:
+ support hook_file_download
+ move functionality of webfm_send in smaller functions: _webfm_managed_by_webfm($fullfilepath), function _webfm_attach_new_window($status = NULL), function _webfm_check_access($filepath)
- Remove hook_webfm_send
- Remove drupal_alter('webfm_file_access',
It should be possible to replace the achieved functionallity by using hook_file_download and function function _webfm_managed_by_webfm($fullfilepath)
About the patches provided: #2 is replaced by this patch. #0 should be discussed in #580556: Full support for ckeditor and tinymce through wysiwyg-api.
Comment #5
nhck commentedI have committed this to cvs head.