You are here

public function EntityReferenceBehavior_TaxonomyIndex::entityPostUpdate in Entity reference 7

Overrides EntityReference_BehaviorHandler_Abstract::entityPostUpdate().

Runs after hook_node_update() used by taxonomy module.

Overrides EntityReference_BehaviorHandler_Abstract::entityPostUpdate

File

plugins/behavior/EntityReferenceBehavior_TaxonomyIndex.class.php, line 55
CTools plugin class for the taxonomy-index behavior.

Class

EntityReferenceBehavior_TaxonomyIndex
Extends an entityreference field to maintain its references to taxonomy terms in the {taxonomy_index} table.

Code

public function entityPostUpdate($entity_type, $entity, $field, $instance) {
  if ($entity_type != 'node') {
    return;
  }
  $this
    ->buildNodeIndex($entity);
}