You are here

function _commerce_file_metadata_validate_limit_integer_positive_or_zero in Commerce File 7

Returns TRUE if value is a postive integer, 0, unlimited, or inherited

1 string reference to '_commerce_file_metadata_validate_limit_integer_positive_or_zero'
_commerce_file_collate_license_info in ./commerce_file.module
Store information about license properties

File

./commerce_file.module, line 1500
Provides integration of file licenses with Commerce

Code

function _commerce_file_metadata_validate_limit_integer_positive_or_zero($value) {
  return _commerce_file_limit_is_inherited($value) || _commerce_file_limit_is_unlimited($value) || _commerce_file_is_integer_or_zero($value);
}