Hi. I'm using the filenode.module which provides access control for individual files by saving them as nodes. I was trying to figure out how to modify this module to perform multiple file uploads when I came across the Web File Manager. It's method for uploading files is pretty clean and easy, so I decided to use it instead.
I have further created a code snippet which will save all files within a specified directory as individual file nodes.
Then I thought: Wouldn't it be great to use the Web File Manager to navigate to the directory which contains the files I wish to convert, and add an option to WFM to be able to save all the files in the highlighted directory as file nodes?
My question: In what function(s) should I look in order to be able to highlight the directory of files I wish to save as file nodes using Web File Manager?
For example, if I right click a directory in WFM, I see the options:
create subdirectory
rename directory
delete directory
search directory
How hard would it be to add another option: "Save the files in this directory as filenodes"?
Thanks for any advice on this.
Comments
Comment #1
nhck commentedYou can find this in webfm.js - however its hard coded, no hook is available on this.