diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/field/modules/number/number.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/field/modules/number/number.module b/modules/field/modules/number/number.module index 8fd19a0e0..276e369b8 100644 --- a/modules/field/modules/number/number.module +++ b/modules/field/modules/number/number.module @@ -173,8 +173,8 @@ function number_field_instance_settings_form($field, $instance) { * Implements hook_field_validate(). * * Possible error codes: - * - 'number_min': The value is smaller than the allowed minimum value. - * - 'number_max': The value is larger than the allowed maximum value. + * - 'number_min': The value is less than the allowed minimum value. + * - 'number_max': The value is greater than the allowed maximum value. */ function number_field_validate($entity_type, $entity, $field, $instance, $langcode, $items, &$errors) { foreach ($items as $delta => $item) { @@ -182,13 +182,13 @@ function number_field_validate($entity_type, $entity, $field, $instance, $langco if (is_numeric($instance['settings']['min']) && $item['value'] < $instance['settings']['min']) { $errors[$field['field_name']][$langcode][$delta][] = array( 'error' => 'number_min', - 'message' => t('%name: the value may be no smaller than %min.', array('%name' => t($instance['label']), '%min' => $instance['settings']['min'])), + 'message' => t('%name: the value may be no less than %min.', array('%name' => t($instance['label']), '%min' => $instance['settings']['min'])), ); } if (is_numeric($instance['settings']['max']) && $item['value'] > $instance['settings']['max']) { $errors[$field['field_name']][$langcode][$delta][] = array( 'error' => 'number_max', - 'message' => t('%name: the value may be no larger than %max.', array('%name' => t($instance['label']), '%max' => $instance['settings']['max'])), + 'message' => t('%name: the value may be no greater than %max.', array('%name' => t($instance['label']), '%max' => $instance['settings']['max'])), ); } } |