Skip to content

Commit

Permalink
Merge branch 'MDL-33885-23' of git://github.com/FMCorz/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_23_STABLE
  • Loading branch information
danpoltawski committed Jul 9, 2012
2 parents d212244 + 0408a48 commit 3a429ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blog/edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ function definition() {

$mform->addElement('header', 'general', get_string('general', 'form'));

$mform->addElement('text', 'subject', get_string('entrytitle', 'blog'), 'size="60"');
$mform->addElement('text', 'subject', get_string('entrytitle', 'blog'), array('size' => 60, 'maxlength' => 128));
$mform->addElement('editor', 'summary_editor', get_string('entrybody', 'blog'), null, $summaryoptions);

$mform->setType('subject', PARAM_TEXT);
$mform->addRule('subject', get_string('emptytitle', 'blog'), 'required', null, 'client');
$mform->addRule('subject', get_string('maximumchars', '', 128), 'maxlength', 128, 'client');

$mform->setType('summary_editor', PARAM_RAW);
$mform->addRule('summary_editor', get_string('emptybody', 'blog'), 'required', null, 'client');
Expand Down

0 comments on commit 3a429ca

Please sign in to comment.