From 42c5683d41e78ce2578ddd80f52290f0eba0fe57 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 24 Jan 2006 18:27:29 +0000 Subject: - Patch #45845 by jaza/chx: set default value of weight-selectors to 0 for consistency with Drupal 4.6. --- modules/system/system.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index edb0b99c2..3251f0b22 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -75,7 +75,7 @@ function system_elements() { $type['radio'] = array('#input' => TRUE); $type['checkboxes'] = array('#input' => TRUE, '#process' => array('expand_checkboxes' => array()), '#tree' => TRUE); $type['select'] = array('#input' => TRUE); - $type['weight'] = array('#input' => TRUE, '#delta' => 10); + $type['weight'] = array('#input' => TRUE, '#delta' => 10, '#default_value' => 0); $type['date'] = array('#input' => TRUE, '#process' => array('expand_date' => array())); $type['file'] = array('#input' => TRUE, '#size' => 60); -- cgit v1.2.3