MDL-20402 - update bulk user action messages from regular textarea to HTML editor.
This commit is contained in:
@@ -50,7 +50,7 @@ if ($msgform->is_cancelled()) {
|
||||
$options->newlines = true;
|
||||
$options->smiley = false;
|
||||
|
||||
$msg = format_text($formdata->messagebody, $formdata->format, $options);
|
||||
$msg = format_text($formdata->messagebody['text'], $formdata->messagebody['format'], $options);
|
||||
|
||||
list($in, $params) = $DB->get_in_or_equal($SESSION->bulk_users);
|
||||
$userlist = $DB->get_records_select_menu('user', "id $in", $params, 'fullname', 'id,'.$DB->sql_fullname().' AS fullname');
|
||||
|
||||
@@ -9,10 +9,9 @@ class user_message_form extends moodleform {
|
||||
$mform->addElement('header', 'general', get_string('message', 'message'));
|
||||
|
||||
|
||||
$mform->addElement('textarea', 'messagebody', get_string('messagebody'), array('rows'=>15, 'cols'=>60));
|
||||
$mform->addRule('messagebody', '', 'required', null, 'client');
|
||||
$mform->setHelpButton('messagebody', array('writing', 'reading', 'questions', 'richtext2'), false, 'editorhelpbutton');
|
||||
$mform->addElement('format', 'format', get_string('format'));
|
||||
$mform->addElement('editor', 'messagebody', get_string('messagebody'), null, null);
|
||||
$mform->addRule('messagebody', '', 'required', null, 'server');
|
||||
$mform->setHelpButton('messagebody', array('writing', 'reading', 'questions', 'richtext2'), false, 'editorhelpbutton');
|
||||
|
||||
$this->add_action_buttons();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user