You are here

function _commerce_file_limit_is_unlimited in Commerce File 7

Returns TRUE if the limit is unlimited

2 calls to _commerce_file_limit_is_unlimited()
_commerce_file_limit_format_interval in includes/commerce_file.elements.inc
Returns limit formatted as an interval with consideration for UNLIMITED
_commerce_file_metadata_validate_limit_integer_positive_or_zero in ./commerce_file.module
Returns TRUE if value is a postive integer, 0, unlimited, or inherited

File

includes/commerce_file.elements.inc, line 410
Commerce File form elements

Code

function _commerce_file_limit_is_unlimited($value) {
  return strcmp($value, COMMERCE_FILE_LIMIT_UNLIMITED) === 0;
}