You are here

public function NodeGalleryBehaviorHandler::delete in Node Gallery 7

Implements EntityReference_BehaviorHandler_Abstract::Delete().

CRUD memberships from field, or if entity is marked for deleting, delete all the Node Gallery relationships related to it.

Overrides EntityReference_BehaviorHandler_Abstract::delete

File

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

Class

NodeGalleryBehaviorHandler
Node Gallery behavior handler.

Code

public function delete($entity_type, $entity, $field, $instance, $langcode, &$items) {

  // Delete all relationships related to this item node.
  $items = array();
  $this
    ->NodeGalleryRelationshipCrud($entity_type, $entity, $field, $instance, $langcode, $items);
}