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

image_pdfimage_print

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
enrol_user(array $user, array $course, array $role)

moodleDir/enrol/manual/externallib.php

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

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

This entry was posted in Moodle. Bookmark the permalink.