You are here

function taxonomy_field_entity_dependencies in Entity Dependency API 7

Implements hook_field_entity_dependencies().

Related topics

File

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

Code

function taxonomy_field_entity_dependencies($entity_type, $entity, $field, $instance, $langcode, $items) {

  // No need to check for the field type here, since this hook is only called
  // for the owner of this field. Taxonomy module only owns one field.
  $dependencies = array();
  entity_dependency_add($dependencies, $items, 'taxonomy_term', 'tid');
  return $dependencies;
}