function entity_property_validate_integer_non_negative in Entity API 7
A validation callback ensuring the passed integer is non-negative.
1 call to entity_property_validate_integer_non_negative()
- entity_metadata_validate_integer_non_negative in includes/
entity.property.inc - Deprecated. Do not make use of this function, instead use the new one.
File
- includes/
entity.property.inc, line 465 - Provides API functions around hook_entity_property_info(). Also see entity.info.inc, which cares for providing entity property info for all core entity types.
Code
function entity_property_validate_integer_non_negative($value) {
return $value >= 0;
}