diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-18 19:29:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-18 19:29:17 +0000 |
commit | 52507806eb2c68dbc05661261b5c10c690cc0ca0 (patch) | |
tree | 97b5d2f319589a9c7ff1559e505d25eb45273392 /modules/book/book.module | |
parent | ffc7c5c3c6db7773de1c430422a1e08449e24f27 (diff) | |
download | brdo-52507806eb2c68dbc05661261b5c10c690cc0ca0.tar.gz brdo-52507806eb2c68dbc05661261b5c10c690cc0ca0.tar.bz2 |
- Patch #45301 by Morbus: corrected the weight of form item titles of nodes.
Diffstat (limited to 'modules/book/book.module')
-rw-r--r-- | modules/book/book.module | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/book/book.module b/modules/book/book.module index f9c1d6a8c..e800b8f50 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -251,10 +251,8 @@ function book_form(&$node) { '#description' => t('The parent that this page belongs in. Note that pages whose parent is <top-level> are regarded as independent, top-level books.') ); - $form['title'] = array('#type' => 'textfield', '#title' => t('Title'), '#required' => TRUE, '#default_value' => $node->title); - $form['body'] = array( - '#type' => 'textarea', '#title' => t('Body'), '#default_value' => $node->body, '#rows' => 20, '#required' => TRUE - ); + $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['log'] = array( |