You are here

function _value_is_integer in Value is 7

Helper: integer.

1 call to _value_is_integer()
value_is_integer in ./value_is.module
Checks for integer (non floating point number).

File

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

Code

function _value_is_integer($value) {
  return (string) $value === (string) (int) $value;
}