MDL-21695 first sample help migration - course full name

AMOS BEGIN
 HLP coursefullname.html,[fullnamecourse_hlp,core]
AMOS END
This commit is contained in:
Petr Skoda 2010-04-13 21:55:02 +00:00
parent 259c165d7a
commit 503d243a3c
3 changed files with 2 additions and 5 deletions

View 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)) {

View File

@ -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>

View 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';