Developing Custom Module Like Label

Re: Developing Custom Module Like Label

by Mark Sharp -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

If you're looking to add content in the course page, like label, and like folder (which displays a tree of the folder), the function you need to implement is `yourpluginname_get_coursemodule_info` in your plugin's `lib.php` file.

See https://github.com/moodle/moodle/blob/8af7bec81e8da777c3895c7eecaf84dffd24c6be/mod/folder/lib.php#L403

After that, it's down to you to fetch the data you require and output it.