Hey, Im making a plugin at question type level and I ran into a problem. The issue is that the Variable $USER is not working, I tried using this and it works.
It works perfectly giving me the correct output. But when I write the exact same in here, In Moodle/question/type/mytype
it doesnt display anything. Also tried including the test file too. It doesnt work aswell.
It displays this only whereas it should display this:
The changed code is:
Try putting your:
Inside the definition_inner function, see if it shows up there.