]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-13148 - adding help popup for course module idnumber
authorpoltawski <poltawski>
Thu, 24 Jan 2008 16:11:14 +0000 (16:11 +0000)
committerpoltawski <poltawski>
Thu, 24 Jan 2008 16:11:14 +0000 (16:11 +0000)
merged from MOODLE_19_STABLE

course/moodleform_mod.php
lang/en_utf8/help/cmidnumber.html [new file with mode: 0644]

index 9553bc01791d9ead9649f1b9a5e786446041692c..0cf20079b6a498b10bd7ee804bb99130fd39a886 100644 (file)
@@ -255,6 +255,7 @@ class moodleform_mod extends moodleform {
 
         $mform->addElement('modvisible', 'visible', get_string('visible'));
         $mform->addElement('text', 'cmidnumber', get_string('idnumber'));
+        $mform->setHelpButton('cmidnumber', array('cmidnumber', get_string('idnumber')), true);
 
         if ($this->_features->gradecat) {
             $categories = grade_get_categories_menu($COURSE->id, $outcomesused);
diff --git a/lang/en_utf8/help/cmidnumber.html b/lang/en_utf8/help/cmidnumber.html
new file mode 100644 (file)
index 0000000..ae87d6d
--- /dev/null
@@ -0,0 +1,5 @@
+<h1>ID number</h1>
+<p>Setting an ID number provides a way of identifying the activity for grade calculation purposes. 
+If the activity is not included in any grade calculation then the ID number field can be left blank.</p>
+<p> The ID number can also be set on the edit grade calculation page in the gradebook, though it can 
+only be edited on the update activity page.</p>