diff --git a/question/type/ddmarker/db/install.xml b/question/type/ddmarker/db/install.xml index a251d0c436f..2946281de32 100644 --- a/question/type/ddmarker/db/install.xml +++ b/question/type/ddmarker/db/install.xml @@ -1,5 +1,5 @@ - @@ -30,8 +30,7 @@ - - + diff --git a/question/type/ddmarker/edit_ddmarker_form.php b/question/type/ddmarker/edit_ddmarker_form.php index e7ec5bb583e..0d3608f2194 100644 --- a/question/type/ddmarker/edit_ddmarker_form.php +++ b/question/type/ddmarker/edit_ddmarker_form.php @@ -105,7 +105,7 @@ class qtype_ddmarker_edit_form extends qtype_ddtoimage_edit_form_base { get_string('marker', 'qtype_ddmarker'), $shapearray); $grouparray[] = $mform->createElement('text', 'coords', get_string('coords', 'qtype_ddmarker'), - array('size'=>20, 'class'=>'tweakcss')); + array('size'=>50, 'class'=>'tweakcss')); $mform->setType('coords', PARAM_NOTAGS); $markernos = array(); $markernos[0] = ''; @@ -116,11 +116,6 @@ class qtype_ddmarker_edit_form extends qtype_ddtoimage_edit_form_base { get_string('marker', 'qtype_ddmarker').' '); $grouparray[] = $mform->createElement('select', 'choice', get_string('marker', 'qtype_ddmarker'), $markernos); - $grouparray[] = $mform->createElement('static', '', '', ' ' . - get_string('alttext', 'qtype_ddmarker').' '); - $grouparray[] = $mform->createElement('text', 'label', - get_string('alttext', 'qtype_ddmarker'), - array('size'=>10, 'class'=>'tweakcss')); $dropzone = $mform->createElement('group', 'drops', get_string('dropzone', 'qtype_ddmarker', '{no}'), $grouparray); return array($dropzone); diff --git a/question/type/ddmarker/questiontype.php b/question/type/ddmarker/questiontype.php index 1104d4a7a54..2fe96899764 100644 --- a/question/type/ddmarker/questiontype.php +++ b/question/type/ddmarker/questiontype.php @@ -116,7 +116,6 @@ class qtype_ddmarker extends qtype_ddtoimage_base { $drop->shape = $formdata->drops[$dropno]['shape']; $drop->coords = $formdata->drops[$dropno]['coords']; $drop->choice = $formdata->drops[$dropno]['choice']; - $drop->label = $formdata->drops[$dropno]['label']; $DB->insert_record('qtype_ddmarker_drops', $drop); }