Skip to content

Commit

Permalink
MDL-22997 Enrol plugins help - credit goes to Helen for wording the t…
Browse files Browse the repository at this point in the history
…exts
  • Loading branch information
mudrd8mz committed Jul 19, 2010
1 parent 6cb9f07 commit 9f38cdc
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 151 deletions.
3 changes: 2 additions & 1 deletion enrol/guest/lang/en/enrol_guest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@
(Here\'s a hint - it starts with \'{$a}\')';
$string['pluginname'] = 'Guest access';
$string['pluginname_desc'] = 'Guest access plugin is only granting temporary access to courses, it is not actually enrolling users.';
$string['pluginname_help'] = 'Guest access is "read-only" access to the course, meaning guests cannot post in a forum, edit a wiki, add glossary or database activity entries or otherwise mess up the course.';
$string['requirepassword'] = 'Require guest access password';
$string['requirepassword_desc'] = 'Require access password in new courses and prevent removing of access password from existing courses.';
$string['showhint'] = 'Show hint';
$string['showhint_desc'] = 'Show first letter of the guest access password.';
$string['status'] = 'Allow guest access';
$string['status_desc'] = 'Allow temporary guest access by default.';
$string['status_help'] = 'This setting determines whether a user can access the course as a guest, without being required to enrol.';
$string['status_link'] = 'enrol/guest';
$string['usepasswordpolicy'] = 'Use password policy';
$string['usepasswordpolicy_desc'] = 'Use standard password policy for guest access passwords.';
2 changes: 2 additions & 0 deletions enrol/guest/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,15 @@ public function course_edit_form($instance, MoodleQuickForm $mform, $data, $cont
$options = array(ENROL_INSTANCE_ENABLED => get_string('yes'),
ENROL_INSTANCE_DISABLED => get_string('no'));
$mform->addElement('select', 'enrol_guest_status_'.$i, get_string('status', 'enrol_guest'), $options);
$mform->addHelpButton('enrol_guest_status_'.$i, 'status', 'enrol_guest');
$mform->setDefault('enrol_guest_status_'.$i, $this->get_config('status'));
$mform->setAdvanced('enrol_guest_status_'.$i, $this->get_config('status_adv'));
if (!$config) {
$mform->hardFreeze('enrol_guest_status_'.$i);
}

$mform->addElement('passwordunmask', 'enrol_guest_password_'.$i, get_string('password', 'enrol_guest'));
$mform->addHelpButton('enrol_guest_password_'.$i, 'password', 'enrol_guest');
if (!$config) {
$mform->hardFreeze('enrol_guest_password_'.$i);
} else {
Expand Down
1 change: 1 addition & 0 deletions enrol/manual/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public function course_edit_form($instance, MoodleQuickForm $mform, $data, $cont
$options = array(ENROL_INSTANCE_ENABLED => get_string('yes'),
ENROL_INSTANCE_DISABLED => get_string('no'));
$mform->addElement('select', 'enrol_manual_status_'.$i, get_string('status', 'enrol_manual'), $options);
$mform->addHelpButton('enrol_manual_status_'.$i, 'status', 'enrol_manual');
$mform->setDefault('enrol_manual_status_'.$i, $this->get_config('status'));
$mform->setAdvanced('enrol_manual_status_'.$i, $this->get_config('status_adv'));
if (!$config) {
Expand Down
2 changes: 1 addition & 1 deletion enrol/self/lang/en/enrol_self.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
$string['showhint_desc'] = 'Show first letter of the guest access key.';
$string['status'] = 'Allow self enrolments';
$string['status_desc'] = 'Allow users to self enrol into course by default.';
$string['status_help'] = 'This setting determines whether a user can enrol (and unenrol) themselves from the course.';
$string['status_help'] = 'This setting determines whether a user can enrol (and also unenrol if they have the appropriate permission) themselves from the course.';
$string['unenrolselfconfirm'] = 'Do you really want to unenrol yourself from course "{$a}"?';
$string['usepasswordpolicy'] = 'Use password policy';
$string['usepasswordpolicy_desc'] = 'Use standard password policy for enrolment keys.';
Expand Down
3 changes: 3 additions & 0 deletions enrol/self/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public function course_edit_form($instance, MoodleQuickForm $mform, $data, $cont
$options = array(ENROL_INSTANCE_ENABLED => get_string('yes'),
ENROL_INSTANCE_DISABLED => get_string('no'));
$mform->addElement('select', 'enrol_self_status_'.$i, get_string('status', 'enrol_self'), $options);
$mform->addHelpButton('enrol_self_status_'.$i, 'status', 'enrol_self');
$mform->setDefault('enrol_self_status_'.$i, $this->get_config('status'));
$mform->setAdvanced('enrol_self_status_'.$i, $this->get_config('status_adv'));
if (!$config) {
Expand All @@ -173,6 +174,7 @@ public function course_edit_form($instance, MoodleQuickForm $mform, $data, $cont


$mform->addElement('passwordunmask', 'enrol_self_password_'.$i, get_string('password', 'enrol_self'));
$mform->addHelpButton('enrol_self_password_'.$i, 'password', 'enrol_self');
if (!$config) {
$mform->hardFreeze('enrol_self_password_'.$i);
} else {
Expand All @@ -183,6 +185,7 @@ public function course_edit_form($instance, MoodleQuickForm $mform, $data, $cont
$options = array(1 => get_string('yes'),
0 => get_string('no'));
$mform->addElement('select', 'enrol_self_customint1_'.$i, get_string('groupkey', 'enrol_self'), $options);
$mform->addHelpButton('enrol_self_customint1_'.$i, 'groupkey', 'enrol_self');
$mform->setDefault('enrol_self_customint1_'.$i, $this->get_config('groupkey'));
$mform->setAdvanced('enrol_self_customint1_'.$i, $this->get_config('groupkey_adv'));
if (!$config) {
Expand Down
2 changes: 1 addition & 1 deletion group/group_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function definition () {
$mform->setType('description_editor', PARAM_RAW);

$mform->addElement('passwordunmask', 'enrolmentkey', get_string('enrolmentkey', 'group'), 'maxlength="254" size="24"', get_string('enrolmentkey', 'group'));
$mform->setHelpButton('enrolmentkey', array('groupenrolmentkey', get_string('enrolmentkey', 'group')), true);
$mform->addHelpButton('enrolmentkey', 'enrolmentkey', 'group');
$mform->setType('enrolmentkey', PARAM_RAW);

if (!empty($CFG->gdversion)) {
Expand Down
36 changes: 0 additions & 36 deletions lang/en/help/assignroles.html

This file was deleted.

23 changes: 0 additions & 23 deletions lang/en/help/enrolmentkey.html

This file was deleted.

15 changes: 0 additions & 15 deletions lang/en/help/enrolperiod.html

This file was deleted.

14 changes: 0 additions & 14 deletions lang/en/help/extendenrol.html

This file was deleted.

4 changes: 0 additions & 4 deletions lang/en/help/groupenrolmentkey.html

This file was deleted.

14 changes: 0 additions & 14 deletions lang/en/help/groupextendenrol.html

This file was deleted.

42 changes: 0 additions & 42 deletions lang/en/help/guestaccess.html

This file was deleted.

0 comments on commit 9f38cdc

Please sign in to comment.