$mform->addElement('htmleditor', 'description', get_string('userdescription'));
$mform->setType('description', PARAM_CLEAN);
- $mform->setHelpButton('description', array('text', get_string('helptext')));
+ $mform->setHelpButton('description', array('text2', get_string('helptext')));
$mform->setAdvanced('description');
$mform->addElement('text', 'url', get_string('webpage'), 'maxlength="255" size="50"');
$mform->setType('idnumber', PARAM_RAW);
$mform->addElement('htmleditor','summary', get_string('summary'), array('rows'=> '10', 'cols'=>'65'));
- $mform->setHelpButton('summary', array('text', get_string('helptext')), true);
+ $mform->setHelpButton('summary', array('text2', get_string('helptext')), true);
$mform->setType('summary', PARAM_RAW);
$courseformats = get_list_of_plugins('course/format');
$mform->addElement('htmleditor', 'summary', get_string('summary'), array('rows'=>'15', 'cols'=>'50'));
$mform->addRule('summary', get_string('missingsummary'), 'required', null, 'client');
$mform->setType('summary', PARAM_RAW);
- $mform->setHelpButton('summary', array('text', get_string('helptext')));
+ $mform->setHelpButton('summary', array('text2', get_string('helptext')));
$mform->addElement('textarea', 'reason', get_string('courserequestreason'), array('rows'=>'15', 'cols'=>'50'));
$topics[$i] = helplink('questions', get_string('helpquestions'));
break;
case 'emoticons' :
- $topics[$i] = helplink('emoticons', get_string('helpemoticons'));
+ $topics[$i] = helplink('emoticons2', get_string('helpemoticons'));
break;
case 'richtext' :
- $topics[$i] = helplink('richtext', get_string('helprichtext'));
+ $topics[$i] = helplink('richtext2', get_string('helprichtext'));
break;
case 'text' :
- $topics[$i] = helplink('text', get_string('helptext'));
+ $topics[$i] = helplink('text2', get_string('helptext'));
break;
default :
print_error('unknownhelp', '', '', $item);
function setHelpButton($helpbuttonargs, $function='helpbutton'){
if (!$this->_canUseHtmlEditor){
if ('editorhelpbutton' == $function){
- $key = array_search('richtext', $helpbuttonargs);
+ $key = array_search('richtext2', $helpbuttonargs);
if ($key !== FALSE){
array_splice($helpbuttonargs, $key, 1, array('text', 'emoticons'));
}
- } elseif ('helpbutton' == $function && $helpbuttonargs[0] == 'richtext' && ((!isset($helpbuttonargs[2])) || $helpbuttonargs[2] == 'moodle')){
+ } elseif ('helpbutton' == $function && $helpbuttonargs[0] == 'richtext2' && ((!isset($helpbuttonargs[2])) || $helpbuttonargs[2] == 'moodle')){
//replace single 'richtext' help button with text and emoticon button when htmleditor off.
return $this->setHelpButton(array('text', 'emoticons'), 'editorhelpbutton');
}
$mform->addElement('htmleditor', 'description', get_string('userdescription'));
$mform->setType('description', PARAM_CLEAN);
- $mform->setHelpButton('description', array('text', get_string('helptext')));
+ $mform->setHelpButton('description', array('text2', get_string('helptext')));
if (!empty($CFG->gdversion)) {
$mform->addElement('header', 'moodle_picture', get_string('pictureof'));//TODO: Accessibility fix fieldset legend
$form->setType('name', PARAM_MULTILANG);
$form->addElement('htmleditor', 'description', get_string('profiledescription', 'admin'));
- $form->setHelpButton('description', array('text', get_string('helptext')));
+ $form->setHelpButton('description', array('text2', get_string('helptext')));
$form->addElement('selectyesno', 'required', get_string('profilerequired', 'admin'));