Closed (fixed)
Project:
FileField Sources
Version:
6.x-1.x-dev
Component:
General
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Aug 2011 at 14:21 UTC
Updated:
9 Sep 2011 at 14:51 UTC
Looking at creating a new source type, and noticed that in the code this source file has to be put inside the source folder under the module.
It would be better that this new source type functions were located in one of my own modules and the filefield_source module performed a invoke_all() to get the methods for settings, and the actions.
In the top of the imce.inc file you state this is actioned like the hook methods but its not a hook function, I think it should be a proper hook functions.
Comments
Comment #1
scroogie commentedOf course you can add sources in custom modules. They don't need to be in the sources/ folder. The default sources play a special role, thats why their functions are called differently. For an example source implementation in a seperate module, you can have a look at my sandbox for a views-based browser: http://drupal.org/sandbox/scroogie/1260492