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/book | |
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/book')
-rw-r--r-- | modules/book/book.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/book/book.module b/modules/book/book.module index e800b8f50..3354c8656 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -252,8 +252,8 @@ function book_form(&$node) { ); $form['title'] = array('#type' => 'textfield', '#title' => t('Title'), '#required' => TRUE, '#default_value' => $node->title, '#weight' => -5); - $form['body'] = array('#type' => 'textarea', '#title' => t('Body'), '#default_value' => $node->body, '#rows' => 20, '#required' => TRUE); - $form['format'] = filter_form($node->format); + $form['body_filter']['body'] = array('#type' => 'textarea', '#title' => t('Body'), '#default_value' => $node->body, '#rows' => 20, '#required' => TRUE); + $form['body_filter']['format'] = filter_form($node->format, 1); $form['log'] = array( '#type' => 'textarea', '#title' => t('Log message'), '#default_value' => $node->log, '#weight' => 5, |