From 9ed5b0c1f66ce48386f72d47a948d70265fad537 Mon Sep 17 00:00:00 2001 From: Tony Butler Date: Tue, 10 Jul 2018 12:28:07 +0100 Subject: [PATCH] MDL-59611 mod_assign: Move help icons for subplugin types out of labels --- mod/assign/locallib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index 55f734cbbec..783fa9bec15 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -1504,8 +1504,9 @@ class assign { } 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) {