From 52507806eb2c68dbc05661261b5c10c690cc0ca0 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 18 Jan 2006 19:29:17 +0000 Subject: - Patch #45301 by Morbus: corrected the weight of form item titles of nodes. --- modules/forum/forum.module | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/forum/forum.module') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index b73d85cc8..50f27baeb 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -583,7 +583,7 @@ function forum_update($node) { * Implementation of hook_form(). */ function forum_form(&$node) { - $form['title'] = array('#type' => 'textfield', '#title' => t('Subject'), '#default_value' => $node->title, '#required' => TRUE); + $form['title'] = array('#type' => 'textfield', '#title' => t('Subject'), '#default_value' => $node->title, '#required' => TRUE, '#weight' => -5); if ($node->nid) { $forum_terms = taxonomy_node_get_terms_by_vocabulary(_forum_get_vid(), $node->nid); @@ -592,8 +592,7 @@ function forum_form(&$node) { $form['shadow'] = array('#type' => 'checkbox', '#title' => t('Leave shadow copy'), '#default_value' => $shadow, '#description' => t('If you move this topic, you can leave a link in the old forum to the new forum.')); } - $form['body'] = array('#type' => 'textarea', '#title' => t('Body'), '#default_value' => $node->body, '#rows' => 20, '#required' => TRUE - ); + $form['body'] = array('#type' => 'textarea', '#title' => t('Body'), '#default_value' => $node->body, '#rows' => 20, '#required' => TRUE); $form['format'] = filter_form($node->format); return $form; -- cgit v1.2.3