little bit of clean up. removed extra global var and format element helpbutton is now included in element definition.
This commit is contained in:
@@ -35,7 +35,6 @@ class forum_post_form extends moodleform {
|
||||
$mform->addRule('message', get_string('required'), 'required', null, 'client');
|
||||
|
||||
$mform->addElement('format', 'format', get_string('format'));
|
||||
$mform->setHelpButton('format', array('textformat', get_string('helpformatting')));
|
||||
|
||||
|
||||
if (isset($forum->id) && forum_is_forcesubscribed($forum->id)) {
|
||||
|
||||
@@ -4,7 +4,7 @@ class journal_mod_form extends moodleform_mod {
|
||||
|
||||
function definition() {
|
||||
|
||||
global $CFG, $COURSE;
|
||||
global $COURSE;
|
||||
$mform =& $this->_form;
|
||||
$renderer =& $mform->defaultRenderer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user