You are here

private function MultichoiceQuestion::checkMarkup in Quiz 6.4

Same name and namespace in other branches
  1. 7.6 question_types/multichoice/multichoice.classes.inc \MultichoiceQuestion::checkMarkup()
  2. 7 question_types/multichoice/multichoice.classes.inc \MultichoiceQuestion::checkMarkup()
  3. 7.4 question_types/multichoice/multichoice.classes.inc \MultichoiceQuestion::checkMarkup()
  4. 7.5 question_types/multichoice/multichoice.classes.inc \MultichoiceQuestion::checkMarkup()

Run check_markup() on the field of the specified choice alternative

Parameters

$alternativeIndex: The index of the alternative in the alternatives array.

$field: The name of the field we want to check markup on

$check_user_access: Whether or not to check for user access to the filter we're trying to apply

Return value

HTML markup

2 calls to MultichoiceQuestion::checkMarkup()
MultichoiceQuestion::getAnsweringForm in question_types/multichoice/multichoice.classes.inc
Generates the question form.
MultichoiceQuestion::validateNode in question_types/multichoice/multichoice.classes.inc
Implementation of validate

File

question_types/multichoice/multichoice.classes.inc, line 108
The main classes for the multichoice question type.

Class

MultichoiceQuestion
Extension of QuizQuestion.

Code

private function checkMarkup($alternativeIndex, $field, $check_user_access = FALSE) {
  $alternative = $this->node->alternatives[$alternativeIndex];
  return check_markup($alternative[$field], $alternative[$field . '_format'], $check_user_access);
}