You are here

function _value_is_number in Value is 7

Helper: float.

1 call to _value_is_number()
value_is_number in ./value_is.module
Checks for number (floating point number).

File

./value_is.module, line 293
All the element validators for #element_validate.

Code

function _value_is_number(&$value) {
  $value = str_replace(',', '.', $value);
  return is_numeric($value);
}