Function call to unenrol students from a course

Function call to unenrol students from a course

by Lamar James -
Number of replies: 1
What function and parameters should be called to unenrol a students from a specific course?

Since teachers cannot unenrol students from their courses without seeing the entire list of students on the site - see http://moodle.org/mod/forum/discuss.php?d=98591 - we'd like to create a button on the profile page that will allow teachers to click and unenrol that specific student from their course. Obviously, the button will be visible only to teachers and admins.
Average of ratings: -