And does the enrol_user function unsuspend a user or is there another function?
Thanks Azmat, so what is the best way to suspend a user's enrolment in a course (or to unenrol them without deleting grades)?