You are here

function entityreference_field_entity_dependencies in Entity Dependency API 7

Implements hook_field_entity_dependencies().

Related topics

File

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

Code

function entityreference_field_entity_dependencies($entity_type, $entity, $field, $instance, $langcode, $items) {
  $dependencies = array();
  entity_dependency_add($dependencies, $items, $field['settings']['target_type'], 'target_id');
  return $dependencies;
}