I want to add a CSS class to the submit button of a question. I thought the best way to do that is by overriding the submit_button
function of the qbehaviour_renderer
class in my theme.
I tried doing that, and although my IDE shows that my function IS overriding what I want, Moodle actually doesn't go into my class and function.
I don't know what I'm doing wrong:
- Does the class name matter? Does it have to start with
theme_mytheme
? - Does the name of the file in which I place the class matter?
- Do I place the file under
classes/output
or underclasses/output/core
?
Or maybe it's not at all possible to override that class from a theme? I couldn't find any documentation on this subject.