You are here

function pmpapi_entity_delete in Public Media Platform API Integration 7

Implements hook_entity_delete().

File

./pmpapi.module, line 494
Creates basic calls to the PMP API.

Code

function pmpapi_entity_delete($entity, $type) {
  list($entity_id, $vid, $bundle) = entity_extract_ids($type, $entity);
  db_delete('pmpapi_local_docs')
    ->condition('entity_id', $entity_id)
    ->condition('entity_type', $type)
    ->execute();
}