SQL Query problem after updating

Re: Ang: Re: Ang: Re: Ang: Re: Ang: Re: SQL Query problem after updating

by Howard Miller -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The normal way to unenrol a user (IIRC) is the grab the enrolment plugin instance and call its unenrol_user() method. 

You must know about enrolment plugin instances as you enrolled them in the first place. 

See lib/enrollib.php