This is how the quiz does it: https://github.com/moodle/moodle/blob/v3.5.0/mod/quiz/lib.php#L1808
General developer forum
adding another button next to "turn editing on" in the new module I'm creating
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.