You are here

function fc_entity_delete in Field Complete 7

Implements hook_entity_delete().

File

./fc.module, line 138
Field Complete - Provides field-based completeness for any entity.

Code

function fc_entity_delete($entity, $entity_type) {
  if (fc_entity_is_enabled($entity_type)) {
    if (empty($entity->fc)) {
      $entity->fc = fcComplete::build($entity_type, $entity);
    }
    $entity->fc
      ->delete();
  }
}