Closed (fixed)
Project:
IMCE for FileField
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Feb 2012 at 16:11 UTC
Updated:
12 Feb 2013 at 14:40 UTC
To enable this also for the video upload field (video module) replace the local function which returns the widgets array with the official filefield_sources_widgets hook in the .module file:
/**
* Implements hook_filefield_sources_widgets().
*
* This returns a list of widgets that are compatible with FileField Sources.
*/
function imce_filefield_filefield_sources_widgets() {
return array('file_generic', 'image_image');
}
Also replace the function call at line 40 and 54 with the invoke hook method:
module_invoke_all('filefield_sources_widgets')
This will enable the checkbox also for the video upload field.
Comments
Comment #1
zach.bimson commentedWorked perfectly, could this be pushed into the next release?
Comment #2
kressin commentedWorked great with public files but once I switched to private file system it no longer responds. Any ideas?
Sorry it works great with private files too. The problem was caused by another module. Great code!
Comment #3
chichilatte commentedFor 6.x-1.x-dev version (datestamp 1348533558) I had to make one tiny change to imce_filefield.module. I changed the line...
to...
Comment #4
ufku commentedYou can now implement hook_imce_filefield_supported_widgets_alter() in your custom module.