diff --git a/course/edit_form.php b/course/edit_form.php index bdd5a334af9ad..45e9b7952cd35 100644 --- a/course/edit_form.php +++ b/course/edit_form.php @@ -85,7 +85,7 @@ function definition() { } $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 index e85e3392ba458..0000000000000 --- a/lang/en/help/coursefullname.html +++ /dev/null @@ -1,4 +0,0 @@ -

Course Full name

- -

The full name of the course is displayed at the top of the screen and in the course listings.

- diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 858b11503304f..49fefbc80c1dd 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -733,6 +733,7 @@ $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';