summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-01-24 18:27:29 +0000
committerDries Buytaert <dries@buytaert.net>2006-01-24 18:27:29 +0000
commit42c5683d41e78ce2578ddd80f52290f0eba0fe57 (patch)
tree73a48412afd3cfc4dbff05fbe7a91606b4a3d76a
parent8a59ab233ebdcb5b651c98dcc39f42c917ba0e82 (diff)
downloadbrdo-42c5683d41e78ce2578ddd80f52290f0eba0fe57.tar.gz
brdo-42c5683d41e78ce2578ddd80f52290f0eba0fe57.tar.bz2
- Patch #45845 by jaza/chx: set default value of weight-selectors to 0 for consistency with Drupal 4.6.
-rw-r--r--modules/system.module2
-rw-r--r--modules/system/system.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/system.module b/modules/system.module
index edb0b99c2..3251f0b22 100644
--- a/modules/system.module
+++ b/modules/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);
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);