It looks to me like it's not possible to provide a plugin from another module. They MUST be in the plugins folder of nodereference_explorer. This means that if I want to add a plugin, I have to hack the module.

The function nodereference_explorer_plugins() simply scans this directory. Perhaps it should call a hook to allow other modules to provide a plugin.

Comments

gnindl’s picture

Status: Active » Postponed

That's true. The plugin architecture isn't very generic yet as it only accommodates the differences between link and nodereference module. You are right, it's better to use hooks and maybe (sub)modules. This will be done in scope of major rewrite in the 2.x-dev series or the Drupal 7 port.

gnindl’s picture

Nevertheless it would be useful to receive your custom plugin as a patch in this queue :)

gnindl’s picture

Title: Plugins can't be provided by other modules » Plugins should be provided by other modules
Project: Nodereference Explorer » Explorer
Version: 6.x-1.2 »
Component: Nodereference Explorer Plugins » Code
Status: Postponed » Active

Propagated to successor explorer module - supposed to have a more generic architecture.