summaryrefslogtreecommitdiff
path: root/modules/story/story.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-01-18 19:29:17 +0000
committerDries Buytaert <dries@buytaert.net>2006-01-18 19:29:17 +0000
commit52507806eb2c68dbc05661261b5c10c690cc0ca0 (patch)
tree97b5d2f319589a9c7ff1559e505d25eb45273392 /modules/story/story.module
parentffc7c5c3c6db7773de1c430422a1e08449e24f27 (diff)
downloadbrdo-52507806eb2c68dbc05661261b5c10c690cc0ca0.tar.gz
brdo-52507806eb2c68dbc05661261b5c10c690cc0ca0.tar.bz2
- Patch #45301 by Morbus: corrected the weight of form item titles of nodes.
Diffstat (limited to 'modules/story/story.module')
-rw-r--r--modules/story/story.module6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/story/story.module b/modules/story/story.module
index 86abac2ae..12c4c7c7b 100644
--- a/modules/story/story.module
+++ b/modules/story/story.module
@@ -85,13 +85,9 @@ function story_validate($node) {
* Implementation of hook_form().
*/
function story_form(&$node) {
-
- $form['title'] = array('#type' => 'textfield', '#title' => t('Title'), '#required' => TRUE, '#default_value' => $node->title);
-
+ $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);
-
return $form;
}
-