You are here

function pmpapi_push_entity_delete in Public Media Platform API Integration 7

Implements hook_entity_delete().

File

pmpapi_push/pmpapi_push.module, line 170
Maps drupal entities to MPM profiles, and pushes them to the PMP API.

Code

function pmpapi_push_entity_delete($entity, $type) {
  if (!empty($entity->pmpapi_guid) && empty($entity->pmpapi_do_not_remove)) {
    pmpapi_remove($entity->pmpapi_guid);
  }
}