Added the Moodle-standard modname_supports() function to lib.php