You are here

private function MultichoiceResponse::checkMarkup in Quiz 7

Same name and namespace in other branches
  1. 6.4 question_types/multichoice/multichoice.classes.inc \MultichoiceResponse::checkMarkup()
  2. 7.4 question_types/multichoice/multichoice.classes.inc \MultichoiceResponse::checkMarkup()

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

Parameters

$alternative: String to be checked

$format: The input format to be used

$check_user_access: Whether or not we are to check the users access to the chosen format

Return value

HTML markup

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

File

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

Class

MultichoiceResponse
Extension of QuizQuestionResponse

Code

private function checkMarkup($alternative, $format, $check_user_access = FALSE) {

  // If the string is empty we don't run it through input filters(They might add empty tags).
  if (drupal_strlen($alternative) == 0) {
    return '';
  }
  return check_markup($alternative, $format, $langcode = '', $check_user_access);
}