You are here

function sf_entity_entity_delete in Salesforce Suite 7

Same name and namespace in other branches
  1. 7.2 sf_entity/sf_entity.module \sf_entity_entity_delete()

Implements hook_entity_delete().

Parameters

string $entity:

string $type:

File

sf_entity/sf_entity.module, line 179
Integrates fieldable entities with the Salesforce API.

Code

function sf_entity_entity_delete($entity, $type) {
  list($id, $vid, $bundle) = entity_extract_ids($type, $entity);
  db_delete('salesforce_object_map')
    ->condition('drupal_entity', $type)
    ->condition('drupal_bundle', $bundle)
    ->condition('oid', $id)
    ->execute();
}