Révision 7b2d1845
Ajouté par Assos Assos il y a presque 4 ans
drupal7/sites/all/modules/webform/components/number.inc | ||
---|---|---|
188 | 188 |
'#type' => 'textfield', |
189 | 189 |
'#title' => t('Minimum'), |
190 | 190 |
'#default_value' => $component['extra']['min'], |
191 |
'#description' => t('Minimum numeric value. For example, 0 would ensure positive numbers.'),
|
|
191 |
'#description' => t('Minimum numeric value. For example, 0 would ensure non-negative numbers.'),
|
|
192 | 192 |
'#size' => 5, |
193 | 193 |
'#maxlength' => 10, |
194 | 194 |
'#weight' => 2.1, |
... | ... | |
649 | 649 |
} |
650 | 650 |
} |
651 | 651 |
elseif ($element['#max'] != '' && $numeric_value > $element['#max']) { |
652 |
form_error($element, t('!name field value must be less than @max.', array('!name' => $element['#title'], '@max' => $element['#max']))); |
|
652 |
form_error($element, t('!name field value must be less than or equal to @max.', array('!name' => $element['#title'], '@max' => $element['#max'])));
|
|
653 | 653 |
} |
654 | 654 |
elseif ($element['#min'] != '' && $numeric_value < $element['#min']) { |
655 |
form_error($element, t('!name field value must be greater than @min.', array('!name' => $element['#title'], '@min' => $element['#min']))); |
|
655 |
form_error($element, t('!name field value must be greater than or equal to @min.', array('!name' => $element['#title'], '@min' => $element['#min'])));
|
|
656 | 656 |
} |
657 | 657 |
|
658 | 658 |
// Integer test. |
Formats disponibles : Unified diff
Weekly update of contrib modules