Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For full view of a Quiz node, in multichoice_view() function, check_markup get invoked twice on node->body. This affects some filters which output HTML code like geshi.
1. calling node_prepare($node, $teaser); applies check_markup() on node->body and produces the output code.
2. In function multichoice_render_question_form(), check_markup() is applied a second time to node->body.
$form['question'] = array('#type' => 'markup', '#value' => check_markup($node->body, $node->format, FALSE));
We may want to replace the above snippet with
$form['question'] = array('#type' => 'markup', '#value' => $node->body);
or remove node_prepare() in if(!$teaser && user_access('create multichoice')) block
Comments
Comment #1
mbutcher CreditAttribution: mbutcher commentedA fix for this has been committed to head. I removed the redundant check_markup() call in multichoice_render_question_form().
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.