You are here

function eck_entity_delete in Entity Construction Kit (ECK) 7.3

Same name and namespace in other branches
  1. 7.2 eck.module \eck_entity_delete()

Implements hook_entity_delete().

File

./eck.module, line 1036

Code

function eck_entity_delete($entity, $entity_type) {
  $entity_type = EntityType::loadByName($entity_type);

  // This is an eck entity.
  if ($entity_type) {
    eck_property_behavior_invoke_plugin($entity_type, 'entity_delete', array(
      'entity' => $entity,
    ));
  }
}