You are here

function comment_entity_dependencies in Entity Dependency API 7

Implements hook_entity_dependenies().

Related topics

File

./entity_dependency.core.inc, line 42
Contains hook implementations for all relevant core module.

Code

function comment_entity_dependencies($entity, $entity_type) {
  if ($entity_type == 'comment') {
    $dependencies = array();
    entity_dependency_add($dependencies, $entity, 'user', 'uid');
    entity_dependency_add($dependencies, $entity, 'node', 'nid');
    return $dependencies;
  }
}