Beispiel #1
0
/**
 * Proces the review options on the quiz settings page
 *
 * @param \mod_activequiz\activequiz $activequiz
 * @return string
 */
function activequiz_process_review_options($activequiz)
{
    $afterreviewoptions = \mod_activequiz\activequiz::get_review_options_from_form($activequiz, 'after');
    $reviewoptions = new stdClass();
    $reviewoptions->after = $afterreviewoptions;
    // add all review options to the db object in the review options field.
    return json_encode($reviewoptions);
}