You are here

private function MultichoiceQuestion::checkMarkup in Quiz 7.4

Same name and namespace in other branches
  1. 6.4 question_types/multichoice/multichoice.classes.inc \MultichoiceQuestion::checkMarkup()
  2. 7.6 question_types/multichoice/multichoice.classes.inc \MultichoiceQuestion::checkMarkup()
  3. 7 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

1 call to MultichoiceQuestion::checkMarkup()
MultichoiceQuestion::validateNode in question_types/multichoice/multichoice.classes.inc
Implementation of validate

File

question_types/multichoice/multichoice.classes.inc, line 110
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]['value'], $alternative[$field]['format']);
}