mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 05:25:08 +02:00
Merge branch 'wip-mdl-34508' of git://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
bd7004d51c
@ -227,28 +227,10 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets help button for editor
|
||||
*
|
||||
* @param mixed $_helpbuttonargs arguments to create help button
|
||||
* @param string $function name of the callback function
|
||||
* @deprecated since Moodle 2.0. Please do not call this function any more.
|
||||
* @todo MDL-34508 this api will be removed.
|
||||
* @see MoodleQuickForm::addHelpButton()
|
||||
* @deprecated since Moodle 2.0
|
||||
*/
|
||||
function setHelpButton($_helpbuttonargs, $function='_helpbutton') {
|
||||
debugging('setHelpButton() is deprecated, please use $mform->addHelpButton() instead');
|
||||
if (!is_array($_helpbuttonargs)) {
|
||||
$_helpbuttonargs = array($_helpbuttonargs);
|
||||
} else {
|
||||
$_helpbuttonargs = $_helpbuttonargs;
|
||||
}
|
||||
//we do this to to return html instead of printing it
|
||||
//without having to specify it in every call to make a button.
|
||||
if ('_helpbutton' == $function){
|
||||
$defaultargs = array('', '', 'moodle', true, false, '', true);
|
||||
$_helpbuttonargs = $_helpbuttonargs + $defaultargs ;
|
||||
}
|
||||
$this->_helpbutton=call_user_func_array($function, $_helpbuttonargs);
|
||||
throw new coding_exception('setHelpButton() can not be used any more, please see MoodleQuickForm::addHelpButton().');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -54,16 +54,10 @@ class MoodleQuickForm_hidden extends HTML_QuickForm_hidden{
|
||||
}
|
||||
|
||||
/**
|
||||
* set html for help button
|
||||
*
|
||||
* @param array $helpbuttonargs array of arguments to make a help button
|
||||
* @param string $function function name to call to get html
|
||||
* @deprecated since Moodle 2.0. Please do not call this function any more.
|
||||
* @todo MDL-34508 this api will be removed.
|
||||
* @see MoodleQuickForm::addHelpButton()
|
||||
* @deprecated since Moodle 2.0
|
||||
*/
|
||||
function setHelpButton($helpbuttonargs, $function='helpbutton'){
|
||||
debugging('setHelpButton() is deprecated, please use $mform->addHelpButton() instead');
|
||||
throw new coding_exception('setHelpButton() can not be used any more, please see MoodleQuickForm::addHelpButton().');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user