Example #1
0
/**
 * Move a particular question one space later in the $quiz->questions list.
 * If that is not possible, do nothing.
 * @param string $layout the existinng layout, $quiz->questions.
 * @param int $questionid the id of a question.
 * @return the updated layout
 */
function quiz_move_question_down($layout, $questionid) {
    return _quiz_move_question($layout, $questionid, +1);
}
Example #2
0
/**
 * Move a particular question one space later in the quiz.
 * If that is not possible, do nothing.
 * @param object $quiz the quiz settings.
 * @param int $slot the slot to move down.
 */
function quiz_move_question_down($quiz, $slot)
{
    return _quiz_move_question($quiz, $slot, 1);
}