You are here

function sf_prematch_match_by_delete in Salesforce Suite 7.2

Same name and namespace in other branches
  1. 6.2 sf_prematch/sf_prematch.module \sf_prematch_match_by_delete()
  2. 7 sf_prematch/sf_prematch.module \sf_prematch_match_by_delete()

Helper function to delete a fieldmap prematch.

Parameters

$fieldmap:

2 calls to sf_prematch_match_by_delete()
salesforce_api_fieldmap_delete in salesforce_api/salesforce_api.module
Deletes a fieldmap from the database.
sf_prematch_delete_form_submit in sf_prematch/sf_prematch.admin.inc
@todo Please document this function.
1 string reference to 'sf_prematch_match_by_delete'
salesforce_api_fieldmap_delete in salesforce_api/salesforce_api.module
Deletes a fieldmap from the database.

File

sf_prematch/sf_prematch.module, line 138
Extends Salesforce API module so checks for an existing match for an object before creating a new one.

Code

function sf_prematch_match_by_delete($name) {
  db_delete('salesforce_prematch')
    ->condition('name', $name)
    ->execute();
}