diff options
-rw-r--r-- | modules/system.module | 2 | ||||
-rw-r--r-- | modules/system/system.module | 2 |
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); |