MDL-34853 use new duration setting type in enrol_paypal
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
0bf660cad6
commit
ef2737a4df
@@ -37,7 +37,7 @@ $string['enrolenddate'] = 'End date';
|
||||
$string['enrolenddate_help'] = 'If enabled, users can be enrolled until this date only.';
|
||||
$string['enrolenddaterror'] = 'Enrolment end date cannot be earlier than start date';
|
||||
$string['enrolperiod'] = 'Enrolment duration';
|
||||
$string['enrolperiod_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['enrolperiod_desc'] = 'Default length of time that the enrolment is valid. If set to zero, the enrolment duration will be unlimited by default.';
|
||||
$string['enrolperiod_help'] = 'Length of time that the enrolment is valid, starting with the moment the user is enrolled. If disabled, the enrolment duration will be unlimited.';
|
||||
$string['enrolstartdate'] = 'Start date';
|
||||
$string['enrolstartdate_help'] = 'If enabled, users can be enrolled from this date onward only.';
|
||||
|
||||
@@ -68,6 +68,6 @@ if ($ADMIN->fulltree) {
|
||||
get_string('defaultrole', 'enrol_paypal'), get_string('defaultrole_desc', 'enrol_paypal'), $student->id, $options));
|
||||
}
|
||||
|
||||
$settings->add(new admin_setting_configtext('enrol_paypal/enrolperiod',
|
||||
get_string('enrolperiod', 'enrol_paypal'), get_string('enrolperiod_desc', 'enrol_paypal'), 0, PARAM_INT));
|
||||
$settings->add(new admin_setting_configduration('enrol_paypal/enrolperiod',
|
||||
get_string('enrolperiod', 'enrol_paypal'), get_string('enrolperiod_desc', 'enrol_paypal'), 0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user