mod_quiz/add_random_question

Description:
  • Initialise the add random question modal on the quiz page.

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

Initialise the add random question modal on the quiz page.

Methods

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

Description:
  • Create the add random question modal.

Source:
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.