[development] creating forward compatable modules?

Nedjo Rogers nedjo at islandnet.com
Wed Nov 23 22:39:51 UTC 2005


> I was wondering if it is possible to create modules that will be 
> compatible with both 4.6 and 4.7?

You could write a backport of selected 4.7 features as a 4.6 module, and 
then write your 4.6 module using the backported 4.7 methods.  This would 
allow you to write with 4.7-like code, and thus ease your eventual 
upgrading.  I've taken this approach with 4.7 javascript, see:

http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/nedjo/modules/drupaljs/ 



More information about the development mailing list