Adding the following code:

/**
* Implements hook_imce_filefield_supported_widgets_alter().
*/
function video_imce_filefield_supported_widgets_alter(&$widgets) {
	// $widgets is originally defined as array('file_generic', 'image_image'). Adding support for video file.
	$widgets[] = 'video_upload';
}

similar to here https://drupal.org/node/1960016

Would show the "Allow users to select files from IMCE File Browser for this field" for the IMCE file browser by default.

Comments

highvoltage’s picture

Where do we add this code? File field sources + imce makes ftp uploads a nuisance due to only allowing RE-use of files that were already uploaded through file field, so being able to skip that module and just use imce file browser would be amazing.

hypertext200’s picture

Component: Video Field » General
Status: Active » Closed (won't fix)