You are here

function media_acquiadam_entity_delete in Media: Acquia DAM 7

Implements hook_entity_delete().

File

./media_acquiadam.module, line 299

Code

function media_acquiadam_entity_delete($entity, $type) {
  if ('file' == $type && !empty($entity->acquiadam_id)) {
    media_acquiadam_flush_cache([
      $entity->acquiadam_id,
    ]);
  }
}