The Drupal module ClosedQuestion adds the Closed Question node-type to Drupal that takes an XML question definition and displays this question to users. The ClosedQuestion-nodes are stand-alone and can be used anywhere a normal node is used. It is developed and maintained by Hylke van der Schaaf.

Features

Input format

In the XML any input format filter can be used, with the exception of:

It is most convenient to create an input format for use specifically with ClosedQuestion. The module better_formats can be used to make sure this input format is always used for ClosedQuestion nodes.

Using images

You can use images in questions in two ways:

  1. Attach the image to the question-node itself using the File attachments function. You can then get the url of this attached image by using [attachurl:filename] or create a complete <img src=""> tag by using [inline:filename], where filename is the name of the attached file. 
  2. Insert the image in text using img-assist.

Method two is useful when you want to insert an image in a block of text, and you thus need to complete <img src=""> tag. Method one can also be used if you only need the url of the image to insert into the src="" of a hotspot or drag&drop question.