Thank you for your help Darko,
As expected I feel a fool. I had been using what I thought was a student user but, sure enough, it turned it to have been set as an admin.
Once I tested using a new user everything is returning expected results. Thank you again.
General developer forum
How to interpret the data in mdl_course_modules
This discussion has been locked so you can no longer reply to it.