How to get current Section ID when in a Quiz activity

How to get current Section ID when in a Quiz activity

by Jeff Jackson -
Number of replies: 0

Hello, I'm new to the Moodle forums so if there is somewhere else I should be going to ask this just let me know.

Basically here is my question, I have a relatively off the shelf copy of Moodle 3.1.2 that I'm working with and I've run into one usability issue I'm trying to overcome.  Essentially after a user has completed a Quiz I want to add a button to the results menu that allows them to navigate back to the current Section.  The problem is I can't find anywhere in the documentation that outlines how to get the section ID that the quiz is a child of in order to build a URL to direct the user to.

Any thoughts?

Average of ratings: -