Merged from MOODLE_15_STABLE. enrol/ldap offers enrol_allowinternal config option as it should.

This commit is contained in:
martinlanghoff 2005-05-30 03:51:39 +00:00
parent b5406c2d43
commit f7d18493f6
2 changed files with 20 additions and 0 deletions

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>

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';
?>