mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-21695 renaming ->help_icon() to old_help_icon() and going to introduce new help_icon() with new parameters and detailed debugging - hopefully this will help during the conversion to new help
This commit is contained in:
parent
9f9193f623
commit
596509e431
55 changed files with 116 additions and 116 deletions
|
@ -1352,7 +1352,7 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless {
|
|||
$module = isset($buttonargs[2]) ? $buttonargs[2] : 'moodle';
|
||||
$linktext = isset($buttonargs[3]) ? $buttonargs[3] : false;
|
||||
|
||||
$element->_helpbutton = $OUTPUT->help_icon($page, $text, $module, $linktext);
|
||||
$element->_helpbutton = $OUTPUT->old_help_icon($page, $text, $module, $linktext);
|
||||
|
||||
} else if (!$suppresscheck) {
|
||||
print_error('nonexistentformelements', 'form', '', $elementname);
|
||||
|
@ -1372,7 +1372,7 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless {
|
|||
*/
|
||||
function addHelpButton($elementname, $identifier, $title, $component = 'moodle', $linktext = '') {
|
||||
if (array_key_exists($elementname, $this->_elementIndex)) {
|
||||
$element->_helpbutton = $OUTPUT->help_icon($identifier, $title, $component, $linktext);
|
||||
$element->_helpbutton = $OUTPUT->old_help_icon($identifier, $title, $component, $linktext);
|
||||
} else if (!$suppresscheck) {
|
||||
debugging(get_string('nonexistentformelements', 'form', $elementname));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue