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?

by 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?

by 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.
isalpikachu k ထံသို့ အကြောင်းပြန်ရာတွင်

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

by Andreas Grabs -
Core developers ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Peer reviewers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ Translators ၏ ရုပ်ပုံ