mod_quiz/add_random_question

Initialise the add random question modal on the quiz page.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Methods

(inner) init(contextId, category, returnUrl, cmid, showNewCategory)

Source:

Create the add random question modal.

Parameters:
Name Type Description
contextId int

Current context id.

category string

Category id and category context id comma separated.

returnUrl string

URL to return to after form submission.

cmid int

Current course module id.

showNewCategory boolean

Display the New category tab when selecting random questions.