function uc_file_get_expiration_properties in Ubercart 8.4
Same name and namespace in other branches
- 7.3 uc_file/uc_file.rules.inc \uc_file_get_expiration_properties()
Callback for getting download expiration properties.
See also
entity_metadata_node_entity_info_alter()
1 string reference to 'uc_file_get_expiration_properties'
- uc_file_rules_data_info in uc_file/
uc_file.rules.inc - Implements hook_rules_data_info().
File
- uc_file/
uc_file.rules.inc, line 103 - Rules hooks and functions for uc_file.module.
Code
function uc_file_get_expiration_properties($expiration, array $options, $name, $entity_type) {
switch ($name) {
case 'user':
return $expiration->uid;
case 'file':
return $expiration->fid;
}
}