Index: webform.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/webform/webform.module,v retrieving revision 1.61.2.8 diff -u -F^f -r1.61.2.8 webform.module --- webform.module 10 Jul 2006 01:39:19 -0000 1.61.2.8 +++ webform.module 12 Jul 2006 12:44:49 -0000 @@ -204,6 +204,13 @@ function webform_settings() { '#options' => array (0 => "OFF", 1 => "Log submissions", 2 => "Full debug"), '#description' => t('Set this option to "Log submissions" to log all submissions in the watchdog. Set it to "Full debug" to print debug info on submission. You probably want to leave this option on "OFF".') ); + $form['advanced']['webform_delta'] = array( + '#type' => 'select', + '#title' => t("Webforms Maximum Weight Size"), + '#default_value' => variable_get("webform_delta", 10), + '#options' => array (10 => 10, 20 => 20, 30 => 30), + '#description' => t('This option controls the maximum positive and negative weight values available for form elements.') + ); return $form; } // end function webform_settings @@ -783,6 +790,7 @@ function webform_edit_field_form (&$node ); $form['field']['weight'] = array ( '#type' => 'weight', + '#delta' => variable_get("webform_delta", 10), '#title' => t("Weight"), '#default_value' => $currfield['weight'], '#description' => t('Optional. In the menu, the heavier items will sink and the lighter items will be positioned nearer the top.'),