You are here

public function NodeGalleryBehaviorHandler::update in Node Gallery 7

Act before updating an entity reference field.

Overrides EntityReference_BehaviorHandler_Abstract::update

See also

hook_field_update()

File

plugins/entityreference/behavior/NodeGalleryBehaviorHandler.class.php, line 37
Node Gallery EntityReference behavior plugin.

Class

NodeGalleryBehaviorHandler
Node Gallery behavior handler.

Code

public function update($entity_type, $entity, $field, $instance, $langcode, &$items) {
  $this
    ->NodeGalleryRelationshipCrud($entity_type, $entity, $field, $instance, $langcode, $items);

  // Don't store relationships in the entityreference field table.
  // Clear them here.
  $items = array();
}