function salesforce_api_search_for_duplicates in Salesforce Suite 7.2
Same name and namespace in other branches
- 6.2 salesforce_api/salesforce_api.module \salesforce_api_search_for_duplicates()
- 7 salesforce_api/salesforce_api.module \salesforce_api_search_for_duplicates()
Wrapper function for the sf_find_match hook, implemented by sf_match in the core Salesforce Suite.
2 calls to salesforce_api_search_for_duplicates()
- sf_entity_export in sf_entity/
sf_entity.module - Exports an entity to Salesforce using the specified fieldmap and stores the ID of the Salesforce object for the entity.
- sf_entity_import in sf_entity/
sf_entity.module - Imports data from Salesforce into a Drupal entity
File
- salesforce_api/
salesforce_api.module, line 1493 - Defines an API that enables modules to interact with the Salesforce server.
Code
function salesforce_api_search_for_duplicates($direction, $entity_name, $bundle_name, $object, $fieldmap_name) {
// Call hook_sf_find_match to give opportunity to try to match existing sf object instead
// of creating a new one. No hook_sf_find_match is defined out of the box. Developers must
// implement their own logic for this one.
return module_invoke_all('sf_find_match', $direction, $entity_name, $bundle_name, $object, $fieldmap_name);
}