enrol/ldap offers enrol_allowinternal config option as it should.

This commit is contained in:
martinlanghoff
2005-05-30 03:51:07 +00:00
parent c8198e1311
commit e7c83f42ef
2 changed files with 20 additions and 0 deletions
+19
View File
@@ -31,6 +31,9 @@ optional_variable($frm->enrol_ldap_autocreate, false);
optional_variable($frm->enrol_ldap_category, 1);
optional_variable($frm->enrol_ldap_template, '');
// general options
optional_variable($frm->enrol_allowinternal, false);
?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
@@ -306,4 +309,20 @@ optional_variable($frm->enrol_ldap_template, '');
</td>
</tr>
<tr>
<td colspan="2">
<h4><?php print_string("enrol_ldap_general_options", "enrol_ldap") ?> </h4>
</td>
</tr>
<tr valign="top">
<td align="right">enrol_allowinternal:</td>
<td>
<input type="checkbox" name="enrol_allowinternal" <?php if ($frm->enrol_allowinternal) echo "checked=\"true\"" ?> />
</td>
<td>
<?php print_string('allowinternal') ?>
</td>
</tr>
</table>
+1
View File
@@ -66,5 +66,6 @@ $string['enrol_ldap_course_idnumber'] = 'Map to the unique identifier in LDAP, u
$string['enrol_ldap_course_shortname'] = 'Optional: LDAP field to get the shortname from.';
$string['enrol_ldap_course_fullname'] = 'Optional: LDAP field to get the full name from.';
$string['enrol_ldap_course_summary'] = 'Optional: LDAP field to get the summary from.';
$string['enrol_ldap_general_options'] = 'General Options';
?>