function _commerce_file_license_property_downloads_check_access in Commerce File 7
Check Callback for License downloads
Return value
TRUE access is allowed
1 string reference to '_commerce_file_license_property_downloads_check_access'
File
- ./
commerce_file.commerce.inc, line 171 - Implementations of Commerce Hooks
Code
function _commerce_file_license_property_downloads_check_access($license, $limit_value) {
$current = _commerce_file_license_property_downloads_current($license);
if (isset($current) && is_numeric($limit_value)) {
return $current < $limit_value;
}
return FALSE;
}