Skip to content
Permalink
Browse files

[multienrol]Hide disabled plugins and show the name of the site defau…

…lt in selection list
  • Loading branch information...
martinlanghoff
martinlanghoff committed Mar 9, 2006
1 parent f5befec commit cd1d0ef61adf6d7cc958ba8c0f20e890d3f18c04
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/edit.html
@@ -116,7 +116,7 @@
<td align="right"><?php print_string("enrolmentplugins") ?>:</td>
<td><?php
unset($choices);
$modules = get_list_of_plugins("enrol");
$modules = explode(',', $CFG->enrol_plugins_enabled);
foreach ($modules as $module) {
$name = get_string("enrolname", "enrol_$module");
$plugin = enrolment_factory::factory($module);
@@ -126,7 +126,7 @@
}
asort($choices);
$choices = array_flip($choices);
$choices = array_merge(array('' => get_string('sitedefault')), $choices);
$choices = array_merge(array('' => get_string('sitedefault').' ('.get_string("enrolname", "enrol_$CFG->enrol").')'), $choices);
choose_from_menu ($choices, "enrol", "$form->enrol", "");
helpbutton("courseenrolmentplugins", get_string("enrolmentplugins"));
?></td>

0 comments on commit cd1d0ef

Please sign in to comment.
You can’t perform that action at this time.