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.
See cvs:/moodle/lib/accesslib.php and the role_unassign() function