Skip to content

Commit

Permalink
MDL-21695 first sample help migration - course full name
Browse files Browse the repository at this point in the history
AMOS BEGIN
 HLP coursefullname.html,[fullnamecourse_hlp,core]
AMOS END
  • Loading branch information
skodak committed Apr 13, 2010
1 parent 259c165 commit 503d243
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion course/edit_form.php
Expand Up @@ -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)) {
Expand Down
4 changes: 0 additions & 4 deletions lang/en/help/coursefullname.html

This file was deleted.

1 change: 1 addition & 0 deletions lang/en/moodle.php
Expand Up @@ -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';
Expand Down

0 comments on commit 503d243

Please sign in to comment.