[development] Distributing "bi-modal" Drupal modules

Aaron Winborn winborn at advomatic.com
Tue Feb 16 19:18:23 UTC 2010

If folks start doing a lot of that, might be nice to add support for an 
'ignore-if-not-supported' property or something to the .info file so it 
doesn't show up w/ a warning in the other version.

Brian Vuyk wrote:
> That is, you could probably release a folder structure / package along 
> the lines of:
> mymodule/
>  includes/shared.inc
>  mymodule_d6.module
>  mymodule_d6.info
>  mymodule_d7.module
>  mymodule_d7.info
> Where 'includes/shared.inc' would include logic shared between the two 
> different modules. Both modules would show up on the 'Modules' page, 
> but only the one corresponding to the correct version of Drupal could 
> be enabled.
Aaron Winborn

Advomatic, LLC

Drupal Multimedia available now!

My blog:

More information about the development mailing list