Create a web service function that enrols a user in a course, without knowing the id of the user, or the contextid of the course

Details

  • Type:Improvement Improvement
  • Status:Open Open
  • Priority:Minor Minor
  • Resolution:Unresolved
  • Affects Version/s:2.0.2
  • Fix Version/s:None
  • Component/s:Web Services
  • Labels:

    None

[crayon-6b113813e1c42370297227/]
[crayon-6b113813e1c51356533241/]

moodleDir/enrol/manual/externallib.php

Besides this chunk I also added in some extra error messages:

moodleDir/enrol/manual/lang/en/enrol_manual.php

[crayon-6b113813e1c54798793324/]