Well, that didn't take me long! There's a few places in the code where students can see grades, so I had to change a few things. But now I have an extra option on the quiz settings that lets the teacher define whether to show or hide grades, and if the setting is 'Hide' then the pages with grade info for students say 'N/Avail' or 'Grade information is not available at this time'. If the teacher flips the setting, then voila, all the grades for that quiz are there. Pretty much as I was after!
I'll roll up some diffs (from the moodle-1.0.9 release) soon if anyone else wants to have a nose.
Baz
General developer forum
Hiding grades from students
This discussion has been locked so you can no longer reply to it.