Register & Enrol student in moodle using custom code

Register & Enrol student in moodle using custom code

by Awais Ahmad -
Number of replies: 1

Hi moodle community,

I need to enrol users through a custom interface. I will explain why? We are a trade school who offer different courses in a different field. We take a pre-enrolment test before enrolling anyone in any course. What we want to do is that if a candidate passes the test successfully we could just enrol them in a moodle course directly. Not only enrolment but also get details from system and register them in the moodle system(including password and anything). 

What are the different ways to achieve this and also what will be the best one?

Average of ratings: -