function _commerce_file_license_property_duration_check_access in Commerce File 7
Check Callback for License duration
Parameters
$license: The Commerce File License entity
$limit_value: The value of the limit for this property
Return value
TRUE access is allowed
1 string reference to '_commerce_file_license_property_duration_check_access'
File
- ./
commerce_file.commerce.inc, line 127 - Implementations of Commerce Hooks
Code
function _commerce_file_license_property_duration_check_access($license, $limit_value) {
$current = _commerce_file_license_property_duration_current($license);
if (isset($current) && is_numeric($limit_value)) {
return $current < $limit_value;
}
return FALSE;
}