MDL-37079 switch the modedit.php functions into course/modedit.php