MDL-35380 SCORM: move new function to lib.php so that drag and drop works.