Last commit for enrol_student(). enrol_student($order->userid, $order->courseid, $timestart, $timeend, 'manual') to role_assign($role->id, $user->id, 0, $context->id, $timestart, $timeend, 0, 'manual'))
Last commit for enrol_student().
enrol_student($order->userid, $order->courseid, $timestart, $timeend, 'manual')
to
role_assign($role->id, $user->id, 0, $context->id, $timestart, $timeend, 0, 'manual'))

dilawar/moodle