MDL-14534 - now you can remove 'Not selected' option
'typ',
'hasvalue',
'position',
- 'required'));
+ 'required',
+ 'options'));
$trackings = new backup_nested_element('trackings');
//end of presentation
$data .= $space.$space.$space.'</PRESENTATION>'."\n";
+ //start of options
+ $data .= $space.$space.$space.'<OPTIONS>'."\n";
+ //start of CDATA
+ $data .= $space.$space.$space.$space.'<![CDATA[';
+ $data .= $item->options;
+ //end of CDATA
+ $data .= ']]>'."\n";
+ //end of options
+ $data .= $space.$space.$space.'</OPTIONS>'."\n";
+
//end of item
$data .= $space.$space.'</ITEM>'."\n";
}
$newitem->typ = $typ;
$newitem->name = trim($item['#']['ITEMTEXT'][0]['#']);
$newitem->label = trim($item['#']['ITEMLABEL'][0]['#']);
+ $newitem->options = trim($item['#']['OPTIONS'][0]['#']);
$newitem->presentation = trim($item['#']['PRESENTATION'][0]['#']);
//check old types of radio, check, and so on
switch($oldtyp) {