summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-15 16:24:40 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-15 16:24:40 +0000
commit922a46d28159737a61602876b961147f46428267 (patch)
tree395569ef52362721e2975658ca8a7362475d73c6 /modules/book.module
parent5accfa08f52a31da74715c38a1d7a12793fa33c7 (diff)
downloadbrdo-922a46d28159737a61602876b961147f46428267.tar.gz
brdo-922a46d28159737a61602876b961147f46428267.tar.bz2
- Patch #34920 by Morbus/webchick/tangent: fixed order of form fields.
Diffstat (limited to 'modules/book.module')
-rw-r--r--modules/book.module9
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/book.module b/modules/book.module
index 63e80b38c..d23801ef3 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -247,7 +247,7 @@ function book_validate($node) {
*/
function book_form(&$node) {
$form['parent'] = array(
- '#type' => 'select', '#title' => t('Parent'), '#default_value' => ($node->parent ? $node->parent : arg(4)), '#options' => book_toc($node->nid), '#weight' => -15,
+ '#type' => 'select', '#title' => t('Parent'), '#default_value' => ($node->parent ? $node->parent : arg(4)), '#options' => book_toc($node->nid), '#weight' => -4,
'#description' => t('The parent that this page belongs in. Note that pages whose parent is &lt;top-level&gt; are regarded as independent, top-level books.')
);
@@ -258,16 +258,13 @@ function book_form(&$node) {
$form['format'] = filter_form($node->format);
$form['log'] = array(
- '#type' => 'fieldset', '#title' => t('Log message'), '#collapsible' => TRUE, '#collapsed' => TRUE
- );
- $form['log']['message'] = array(
- '#type' => 'textarea', '#default_value' => $node->log, '#weight' => 18,
+ '#type' => 'textarea', '#title' => t('Log message'), '#default_value' => $node->log, '#weight' => 5,
'#description' => t('An explanation of the additions or updates being made to help other authors understand your motivations.')
);
if (user_access('administer nodes')) {
$form['weight'] = array(
- '#type' => 'weight', '#title' => t('Weight'), '#default_value' => $node->weight, '#delta' => 15, '#weight' => -14,
+ '#type' => 'weight', '#title' => t('Weight'), '#default_value' => $node->weight, '#delta' => 15, '#weight' => 5,
'#description' => t('Pages at a given level are ordered first by weight and then by title.')
);
}