Projet

Général

Profil

Révision 01f36513

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/webform/components/number.inc
58 58
}
59 59

  
60 60
/**
61
 * Adjusts the view field(s) that are automatically generated for number
62
 * components.
61
 * Fix the view field(s) that are automatically generated for number components.
63 62
 */
64 63
function _webform_view_field_number($component, $fields) {
65 64
  foreach ($fields as &$field) {
......
610 609
}
611 610

  
612 611
/**
613
 * A Drupal Form API Validation function. Validates the entered values from
614
 * number components on the client-side form.
612
 * A Drupal Form API Validation function.
615 613
 *
616
 * @param $element
614
 * Validates the entered values from number components on the client-side form.
615
 *
616
 * @param array $element
617 617
 *   The form element. May either be a select or a webform_number element.
618
 * @param $form_state
618
 * @param array $form_state
619 619
 *   The full form state for the webform.
620 620
 */
621 621
function _webform_validate_number($element, &$form_state) {
......
882 882
 *
883 883
 * @param string $value
884 884
 *   The string value to be standardized into a numeric string.
885
 * @param $point
885
 * @param string $point
886 886
 *   The point separator between the whole number and the decimals.
887 887
 *
888
 * @return mixed|string
888
 * @return string
889
 *   The converted number.
889 890
 */
890 891
function webform_number_standardize($value, $point) {
891 892
  // For simplicity, strip everything that's not the decimal point.

Formats disponibles : Unified diff