Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge branch 'MDL-59611-35' of git://github.com/damyon/moodle into MO…
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+2
−1
mod/assign/locallib.php
|
@@ -1504,8 +1504,9 @@ protected function add_plugin_settings(assign_plugin $plugin, MoodleQuickForm $m |
|
|
} else if ($plugin->is_visible() && $plugin->is_configurable()) { |
|
|
$name = $plugin->get_subtype() . '_' . $plugin->get_type() . '_enabled'; |
|
|
$label = $plugin->get_name(); |
|
|
$label .= ' ' . $this->get_renderer()->help_icon('enabled', $plugin->get_subtype() . '_' . $plugin->get_type()); |
|
|
$pluginsenabled[] = $mform->createElement('checkbox', $name, '', $label); |
|
|
$helpicon = $this->get_renderer()->help_icon('enabled', $plugin->get_subtype() . '_' . $plugin->get_type()); |
|
|
$pluginsenabled[] = $mform->createElement('static', '', '', $helpicon); |
|
|
|
|
|
$default = get_config($plugin->get_subtype() . '_' . $plugin->get_type(), 'default'); |
|
|
if ($plugin->get_config('enabled') !== false) { |
|
|