Commit 42c5683d authored by Dries's avatar Dries

- Patch #45845 by jaza/chx: set default value of weight-selectors to 0 for...

- Patch #45845 by jaza/chx: set default value of weight-selectors to 0 for consistency with Drupal 4.6.
parent 8a59ab23
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment