function _commerce_file_limit_format_interval in Commerce File 7
Returns limit formatted as an interval with consideration for UNLIMITED
1 string reference to '_commerce_file_limit_format_interval'
- commerce_file_limit_duration_element_process in includes/
commerce_file.elements.inc - FAPI process callback for limit textfield element type.
File
- includes/
commerce_file.elements.inc, line 417 - Commerce File form elements
Code
function _commerce_file_limit_format_interval($interval, $granularity = 2, $langcode = NULL) {
if (_commerce_file_limit_is_unlimited($interval) || _commerce_file_limit_is_inherited($interval)) {
return $interval;
}
return format_interval($interval, $granularity, $langcode);
}