You are here

function salesforce_api_salesforce_fieldmap_load_by in Salesforce Suite 7.2

Loads fieldmaps that match a particular set of conditions.

Parameters

array $conditions: An array of conditions on which to match fieldmaps, keyed by the fields of the {salesforce_fieldmap} table.

Return value

array An array of fieldmaps matching the provided conditions.

3 calls to salesforce_api_salesforce_fieldmap_load_by()
salesforce_api_fieldmap_field_delete in salesforce_api/salesforce_api.module
Remove a field from all fieldmaps. This is particularly useful for implementations of hook_field_delete_instance. May be use to delete an occurrence in a single fieldmap (by supplying drupal_entity, drupal_bundle and/or salesforce_type), or…
sf_entity_save in sf_entity/sf_entity.module
_sf_notifications_handle_message in sf_notifications/sf_notifications.module
Loop through an array of SObjects from Salesforce and save them according to any existing sf fieldmaps, notification settings, and data.

File

salesforce_api/salesforce_api.module, line 2133
Defines an API that enables modules to interact with the Salesforce server.

Code

function salesforce_api_salesforce_fieldmap_load_by($conditions) {
  ctools_include('export');
  $result = ctools_export_load_object('salesforce_fieldmap', 'conditions', $conditions);
  return $result;
}