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 -
Number of replies: 2

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



تێکرایى نمرەپێدراوەکان: -
In reply to 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.