Skip to content

Commit

Permalink
MDL-34853 use new duration setting type in enrol_manual
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak authored and stronk7 committed Aug 22, 2012
1 parent c92d6f4 commit 47c8b97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion enrol/manual/lang/en/enrol_manual.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
$string['assignrole'] = 'Assign role';
$string['confirmbulkdeleteenrolment'] = 'Are you sure you want to delete these users enrolments?';
$string['defaultperiod'] = 'Default enrolment duration';
$string['defaultperiod_desc'] = 'Default length of time that the enrolment is valid (in seconds). If set to zero, the enrolment duration will be unlimited by default.';
$string['defaultperiod_desc'] = 'Default length of time that the enrolment is valid. If set to zero, the enrolment duration will be unlimited by default.';
$string['defaultperiod_help'] = 'Default length of time that the enrolment is valid, starting with the moment the user is enrolled. If disabled, the enrolment duration will be unlimited by default.';
$string['deleteselectedusers'] = 'Delete selected user enrolments';
$string['editenrolment'] = 'Edit enrolment';
Expand Down
4 changes: 2 additions & 2 deletions enrol/manual/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
$settings->add(new admin_setting_configselect('enrol_manual/status',
get_string('status', 'enrol_manual'), get_string('status_desc', 'enrol_manual'), ENROL_INSTANCE_ENABLED, $options));

$settings->add(new admin_setting_configtext('enrol_manual/enrolperiod',
get_string('defaultperiod', 'enrol_manual'), get_string('defaultperiod_desc', 'enrol_manual'), 0, PARAM_INT));
$settings->add(new admin_setting_configduration('enrol_manual/enrolperiod',
get_string('defaultperiod', 'enrol_manual'), get_string('defaultperiod_desc', 'enrol_manual'), 0));

if (!during_initial_install()) {
$options = get_default_enrol_roles(context_system::instance());
Expand Down

0 comments on commit 47c8b97

Please sign in to comment.