[development] creating forward compatable modules?

Karoly Negyesi karoly at negyesi.net
Wed Nov 23 21:13:54 UTC 2005


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

Yes. You write both modules, put each them into a .inc file and all the  
module is

if (function_exists('_node_name')) {
   include 'mymodule_4.7.inc';
}
else {
   include 'mymodule_4.7.inc';
}

But I do not think this approach worths it...


More information about the development mailing list