Hi,
is it always mandatory to have an enrolment plugin active for acourse to enrol into this course or is it possible to enrol to a course withouth an enrolment instance on a datalayer?
Currently, if i saw it correctly, in Moodle 2.0 this function is used:
enrol_user($instance, $userinfo->id, $instance->roleid, $timestart, $timeend);
If a plugin is mandatory, how can i create one to get an instance from it? Should i follow the 1.9 steps: http://docs.moodle.org/en/Development:Enrolment_plugins ?
Thanks,
Ramo