MDL-21695 first sample help migration - course full name
authorPetr Skoda <skodak@moodle.org>
Tue, 13 Apr 2010 21:55:02 +0000 (21:55 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 13 Apr 2010 21:55:02 +0000 (21:55 +0000)
AMOS BEGIN
 HLP coursefullname.html,[fullnamecourse_hlp,core]
AMOS END

course/edit_form.php
lang/en/help/coursefullname.html [deleted file]
lang/en/moodle.php

index bdd5a33..45e9b79 100644 (file)
@@ -85,7 +85,7 @@ class course_edit_form extends moodleform {
         }
 
         $mform->addElement('text','fullname', get_string('fullnamecourse'),'maxlength="254" size="50"');
-        $mform->setHelpButton('fullname', array('coursefullname', get_string('fullnamecourse')), true);
+        $mform->addHelpButton('fullname', 'fullnamecourse');
         $mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client');
         $mform->setType('fullname', PARAM_MULTILANG);
         if (!empty($course->id) and !has_capability('moodle/course:changefullname', $coursecontext)) {
diff --git a/lang/en/help/coursefullname.html b/lang/en/help/coursefullname.html
deleted file mode 100644 (file)
index e85e339..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-<h1>Course Full name</h1>
-
-<p>The full name of the course is displayed at the top of the screen and in the course listings.</p>
-
index 858b115..49fefbc 100644 (file)
@@ -733,6 +733,7 @@ $string['frontpagetopiconly'] = 'Topic section';
 $string['fulllistofcourses'] = 'All courses';
 $string['fullname'] = 'Full name';
 $string['fullnamecourse'] = 'Course full name';
+$string['fullnamecourse_hlp'] = 'The full name of the course is displayed at the top of the screen and in the course listings.';
 $string['fullnamedisplay'] = '{$a->firstname} {$a->lastname}';
 $string['fullnameuser'] = 'User full name';
 $string['fullprofile'] = 'Full profile';