Programmatically creating meta-links

Programmatically creating meta-links

by Alan Zaitchik -
Number of replies: 1

How might one programmatically create "enrollment metalinks" from one Moodle course to another? I have written an enrollment plugin that can create new course shells and execute enrollment Adds (and Drops) based on data coming in from an outside source, but I have not been able to figure out if Moodle has any exposed hooks for metalinking such courses to a "parent" course, even if I know which course that should be and that it exists. Creating metalinks manually is just not scalable. Since this feature would be of obvious utility I am surprised that it does not exist by now. Did I miss something in plain sight? In any event what do you recommend as a strategy most likely not to break in a future Moodle release?

Thanks.

Average of ratings: -