function file_entity_dependencies in Entity Dependency API 7
Implements hook_entity_dependenies().
Related topics
File
- ./
entity_dependency.core.inc, line 68 - Contains hook implementations for all relevant core module.
Code
function file_entity_dependencies($entity, $entity_type) {
if ($entity_type == 'file') {
$dependencies = array();
entity_dependency_add($dependencies, $entity, 'user', 'uid');
return $dependencies;
}
}