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

scroogie’s picture

Status: Active » Fixed

Of 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.