function _commerce_file_license_property_ip_remaining in Commerce File 7
Remaining Callback for License IP Addresses
1 string reference to '_commerce_file_license_property_ip_remaining'
File
- ./
commerce_file.commerce.inc, line 195 - Implementations of Commerce Hooks
Code
function _commerce_file_license_property_ip_remaining($license, $limit_value) {
if (is_numeric($limit_value)) {
$current = _commerce_file_license_property_ip_current($license);
if (isset($current)) {
return $limit_value - $current;
}
// default to full limit
return $limit_value;
}
return 0;
}