Adrian and Earnie wrote:


There's no easy answer for the first case, other than bloating your  code with additional drupal_function_exists checks, and the second  would require tracking module version (at least its major version).
we need this anyway

badly.


The other option is to read the module.info file and grab the version info from it.

There's already a patch for this here, crying out for some attention :http://drupal.org/node/211747