mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 11:56:40 +02:00
MDL-59611 mod_assign: Move help icons for subplugin types out of labels
This commit is contained in:
parent
99d1a03857
commit
e8d8bccb25
1 changed files with 2 additions and 1 deletions
|
@ -1504,8 +1504,9 @@ class assign {
|
||||||
} else if ($plugin->is_visible() && $plugin->is_configurable()) {
|
} else if ($plugin->is_visible() && $plugin->is_configurable()) {
|
||||||
$name = $plugin->get_subtype() . '_' . $plugin->get_type() . '_enabled';
|
$name = $plugin->get_subtype() . '_' . $plugin->get_type() . '_enabled';
|
||||||
$label = $plugin->get_name();
|
$label = $plugin->get_name();
|
||||||
$label .= ' ' . $this->get_renderer()->help_icon('enabled', $plugin->get_subtype() . '_' . $plugin->get_type());
|
|
||||||
$pluginsenabled[] = $mform->createElement('checkbox', $name, '', $label);
|
$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');
|
$default = get_config($plugin->get_subtype() . '_' . $plugin->get_type(), 'default');
|
||||||
if ($plugin->get_config('enabled') !== false) {
|
if ($plugin->get_config('enabled') !== false) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue