Adrian and Earnie wrote:
we need this anyway
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).
badly.
The other option is to read the module.info file and grab the version info from it.