function sf_entity_user_delete in Salesforce Suite 7
Implements hook_user_delete().
File
- sf_entity/
sf_entity.module, line 203 - Integrates fieldable entities with the Salesforce API.
Code
function sf_entity_user_delete($account) {
list($id, $vid, $bundle) = entity_extract_ids('user', $account);
db_delete('salesforce_object_map')
->condition('drupal_entity', 'user')
->condition('drupal_bundle', 'user')
->condition('oid', $account->uid)
->execute();
}