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.