Is there way to add a userselector to the settings page of an activity module in moodle?

Is there way to add a userselector to the settings page of an activity module in moodle?

написао/ла isalpikachu k -
Број одговора: 2

Basically the subject. I would like this user selector in the settings page of my activity module.



У одговору на isalpikachu k

Re: Is there way to add a userselector to the settings page of an activity module in moodle?

написао/ла Mark Sharp -
Слика Core developers Слика Particularly helpful Moodlers Слика Plugin developers
Yes you can. Here's an example from a plugin I worked on. https://github.com/ltu-solent/moodle-report_adhocreportviewer/blob/main/assign.php
The tricky bits are the queries to select or not select potential users.