Remove all enrolment methods from all courses in a category

Re: Remove all enrolment methods from all courses in a category

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

You should probably look at what the existing code to delete enrolment plugins from a course does. With Moodle (as it doesn't have a common controller - hurray!!) you can just look at the URL to see which script is being executed. 

You'll also need to generate a list of courses within a category. This should be straightforward if you look at the definition of the (from memory) course_categories table.

Average of ratings: Useful (1)