diff options
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index b47ace8f8..e161e9201 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1389,6 +1389,9 @@ function comment_form($edit, $title = NULL) { } $form['comment_filter']['comment'] = array('#type' => 'textarea', '#title' => t('Comment'), '#rows' => 15, '#default_value' => $edit['comment'] ? $edit['comment'] : $user->signature, '#required' => TRUE); + if (!isset($edit['format'])) { + $edit['format'] = FILTER_FORMAT_DEFAULT; + } $form['comment_filter']['format'] = filter_form($edit['format']); $form['cid'] = array('#type' => 'value', '#value' => $edit['cid']); |