Skip to content

Commit

Permalink
MDL-22574 removing obsolete choose file elements that can not work an…
Browse files Browse the repository at this point in the history
…y more, developers have to upgrade code
  • Loading branch information
skodak committed Jun 5, 2010
1 parent b1d4407 commit 4b7c96d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 325 deletions.
155 changes: 0 additions & 155 deletions lib/form/choosecoursefile.php

This file was deleted.

164 changes: 0 additions & 164 deletions lib/form/choosecoursefileorimsrepo.php

This file was deleted.

2 changes: 0 additions & 2 deletions lib/formslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2285,8 +2285,6 @@ function getStopFieldsetElements(){
MoodleQuickForm::registerElementType('cancel', "$CFG->libdir/form/cancel.php", 'MoodleQuickForm_cancel');
MoodleQuickForm::registerElementType('searchableselector', "$CFG->libdir/form/searchableselector.php", 'MoodleQuickForm_searchableselector');
MoodleQuickForm::registerElementType('checkbox', "$CFG->libdir/form/checkbox.php", 'MoodleQuickForm_checkbox');
MoodleQuickForm::registerElementType('choosecoursefile', "$CFG->libdir/form/choosecoursefile.php", 'MoodleQuickForm_choosecoursefile');
MoodleQuickForm::registerElementType('choosecoursefileorimsrepo', "$CFG->libdir/form/choosecoursefileorimsrepo.php", 'MoodleQuickForm_choosecoursefileorimsrepo');
MoodleQuickForm::registerElementType('date_selector', "$CFG->libdir/form/dateselector.php", 'MoodleQuickForm_date_selector');
MoodleQuickForm::registerElementType('date_time_selector', "$CFG->libdir/form/datetimeselector.php", 'MoodleQuickForm_date_time_selector');
MoodleQuickForm::registerElementType('duration', "$CFG->libdir/form/duration.php", 'MoodleQuickForm_duration');
Expand Down
8 changes: 4 additions & 4 deletions question/import_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ function definition() {
$i = 0 ;
foreach ($fileformatnames as $shortname => $fileformatname) {
$currentgrp1 = array();
$currentgrp1[] = &$mform->createElement('radio','format','',$fileformatname,$shortname);
$currentgrp1[] = &$mform->createElement('radio','format','',$fileformatname,$shortname);
$mform->addGroup($currentgrp1,"formathelp[$i]",'',array('<br />'),false);
$mform->setHelpButton("formathelp[$i]", array("$shortname",$fileformatname,"qformat_$shortname"));
$mform->setHelpButton("formathelp[$i]", array("$shortname",$fileformatname,"qformat_$shortname"));
$i++ ;
}
$mform->addRule("formathelp[0]", null, 'required', null, 'client' );
Expand Down Expand Up @@ -64,8 +64,8 @@ function definition() {
//--------------------------------------------------------------------------------
if (has_capability('moodle/course:managefiles', get_context_instance(CONTEXT_COURSE, $COURSE->id))){
$mform->addElement('header', 'importfilearea', get_string('importfilearea','quiz'));

$mform->addElement('choosecoursefile', 'choosefile', get_string('choosefile','quiz'));
//TODO: MDL-16094
//$mform->addElement('choosecoursefile', 'choosefile', get_string('choosefile','quiz'));
//--------------------------------------------------------------------------------
$mform->addElement('submit', 'submitbutton', get_string('importfromthisfile','quiz'));
}
Expand Down

0 comments on commit 4b7c96d

Please sign in to comment.