> 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...