Does anyone know if any modules use a plug-in infrastructure whereby a module can have several optional units of functionality - for example support for different import filters, graphic formats, compression algorithms etc, where in order to add a plug-in no changes have to be made to the module itself except to add some extra files into that modules folder? Rather than just go ahead and develop a way of doing this I wondered if this kind of system already exists, and if so what module I should look at for example code..

Comments

adrian’s picture

it loads things based on file formats.

but thereis no system inherent in drupal, and i'm not sure one is needed. (although i do see the need for generic 'library' modules that don't ever get mentioned in the interface)

--
The future is so Bryght, I have to wear shades.

richardhall’s picture

The modules I'm adding are complex enough that they really do need a plugin system. If nobody can tell me of one that exists already in Drupal I guess I'm going to invent this wheel for the first Drupal time...

eaton’s picture

Flexinode uses a set of include files to implement new field types. Perhaps you could start by looking there for some examples?

--
Eaton — Partner at Autogram