]> git.mjollnir.org Git - moodle.git/commitdiff
Dropping support for Workshop password
authorDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 17:54:03 +0000 (17:54 +0000)
committerDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 17:54:03 +0000 (17:54 +0000)
Discussed with Petr. Password protection should be sorted out at the
core level (conditionlib maybe).

mod/workshop/db/install.xml
mod/workshop/lang/en_utf8/workshop.php
mod/workshop/mod_form.php

index 04716a93b3472a82d677870d80d32c4a84f82c72..fa7a3623a7913a430b19c11d6e0bc37bef733595 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" ?>
-<XMLDB PATH="mod/workshop/db" VERSION="20090812" COMMENT="XMLDB file for Moodle mod/workshop"
+<XMLDB PATH="mod/workshop/db" VERSION="20090813" COMMENT="XMLDB file for Moodle mod/workshop"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
 >
@@ -31,8 +31,7 @@
         <FIELD NAME="submissionend" TYPE="int" LENGTH="10" NOTNULL="false" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" COMMENT="0 = will be closed manually, greater than 0 the timestamp of the end of the submission phase" PREVIOUS="submissionstart" NEXT="assessmentstart"/>
         <FIELD NAME="assessmentstart" TYPE="int" LENGTH="10" NOTNULL="false" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" COMMENT="0 = will be started manually, greater than 0 the timestamp of the start of the assessment phase" PREVIOUS="submissionend" NEXT="assessmentend"/>
         <FIELD NAME="assessmentend" TYPE="int" LENGTH="10" NOTNULL="false" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" COMMENT="0 = will be closed manually, greater than 0 the timestamp of the end of the assessment phase" PREVIOUS="assessmentstart" NEXT="releasegrades"/>
-        <FIELD NAME="releasegrades" TYPE="int" LENGTH="10" NOTNULL="false" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" COMMENT="0 = will be released manually, greater than 0 the timestamp when final grades are published" PREVIOUS="assessmentend" NEXT="password"/>
-        <FIELD NAME="password" TYPE="char" LENGTH="255" NOTNULL="false" SEQUENCE="false" COMMENT="The access password" PREVIOUS="releasegrades"/>
+        <FIELD NAME="releasegrades" TYPE="int" LENGTH="10" NOTNULL="false" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" COMMENT="0 = will be released manually, greater than 0 the timestamp when final grades are published" PREVIOUS="assessmentend"/>
       </FIELDS>
       <KEYS>
         <KEY NAME="primary" TYPE="primary" FIELDS="id" NEXT="course_fk"/>
index cf75f4051446fc3017e197a6cf11973272d040d5..3397a0f79b013c584822ff78b87d62db66957307 100644 (file)
@@ -150,7 +150,6 @@ $string['previewassessmentform'] = 'Preview';
 $string['randomallocationdone'] = 'Random allocation done';
 $string['releasegrades'] = 'Push final grades into the gradebook';
 $string['removecurrentallocations'] = 'Remove current allocations';
-$string['requirepassword'] = 'Require password';
 $string['saveandclose'] = 'Save and close';
 $string['saveandcontinue'] = 'Save and continue editing';
 $string['saveandpreview'] = 'Save and preview';
index 56c806b250be68b55bfc2af2d78a810012170f1b..44a4bc4095a3441dfb5b7115c88a628b5fb7ee8c 100644 (file)
@@ -186,11 +186,6 @@ class mod_workshop_mod_form extends moodleform_mod {
         $mform->setHelpButton('releasegrades', array('releasegrades', $label, 'workshop'));
         $mform->setAdvanced('releasegrades');
 
-        $label = get_string('requirepassword', 'workshop');
-        $mform->addElement('passwordunmask', 'password', $label);
-        $mform->setType('quizpassword', PARAM_TEXT);
-        $mform->setHelpButton('password', array('requirepassword', $label, 'workshop'));
-
 /// Common module settinga, Restrict availability, Activity completion etc. ----
         $features = array('groups'=>true, 'groupings'=>true, 'groupmembersonly'=>true,
                 'outcomes'=>true, 'gradecat'=>false, 'idnumber'=>false);