You are here

private function MultichoiceQuestion::checkMarkup in Quiz 7.5

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.4 question_types/multichoice/multichoice.classes.inc \MultichoiceQuestion::checkMarkup()

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

Parameters

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

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

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

Return value

string The filtered text.

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

File

question_types/multichoice/multichoice.classes.inc, line 99
Multichoice classes.

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']);
}