You are here

function entity_property_validate_integer_positive in Entity API 7

A validation callback ensuring the passed integer is positive.

1 call to entity_property_validate_integer_positive()
entity_metadata_validate_integer_positive in includes/entity.property.inc
Deprecated. Do not make use of this function, instead use the new one.

File

includes/entity.property.inc, line 458
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_positive($value) {
  return $value > 0;
}