diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-19 08:54:41 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-19 08:54:41 +0000 |
commit | e84a98a22b5cd6394f3c33970114b3a960c11f05 (patch) | |
tree | 4afd5d53ff66b465bfdce4fd48a4ca7ed8b95d42 /modules/comment.module | |
parent | ecd26ac8ae495d785a78f34e3e4170904be7f023 (diff) | |
download | brdo-e84a98a22b5cd6394f3c33970114b3a960c11f05.tar.gz brdo-e84a98a22b5cd6394f3c33970114b3a960c11f05.tar.bz2 |
- Patch #45349 by Morbus Iff: input filters aren't sorting correctly infForms API.
Diffstat (limited to 'modules/comment.module')
-rw-r--r-- | modules/comment.module | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/comment.module b/modules/comment.module index c574d19fb..18e8b304d 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -1332,10 +1332,8 @@ function comment_form($edit, $title = NULL) { $form['subject'] = array('#type' => 'textfield', '#title' => t('Subject'), '#maxlength' => 64, '#default_value' => $edit['subject']); } - $form['comment'] = array('#type' => 'textarea', '#title' => t('Comment'), '#rows' => 15, '#default_value' => $edit['comment'] ? $edit['comment'] : $user->signature, '#required' => TRUE - ); - - $form['format'] = filter_form($edit['format'], 18); + $form['comment_filter']['comment'] = array('#type' => 'textarea', '#title' => t('Comment'), '#rows' => 15, '#default_value' => $edit['comment'] ? $edit['comment'] : $user->signature, '#required' => TRUE); + $form['comment_filter']['format'] = filter_form($edit['format'], 1); $form['cid'] = array('#type' => 'value', '#value' => $edit['cid']); $form['pid'] = array('#type' => 'value', '#value' => $edit['pid']); |