function salesforce_mapping_object_load_by_drupal in Salesforce Suite 7.3
Returns Salesforce object mappings for a given Drupal entity.
Parameters
string $entity_type: Type of entity to load.
int $entity_id: Unique identifier of the target entity to load.
bool $reset: Whether or not the cache should be cleared and fetch from current data.
Return value
SalesforceMappingObject The requested SalesforceMappingObject or FALSE if none was found.
9 calls to salesforce_mapping_object_load_by_drupal()
- hook_salesforce_push_mapping_object_alter in ./
salesforce.api.php - Define or alter the mapping object during a push.
- SalesforceMappingEntitiesTestCase::testRecordMapCrud in modules/
salesforce_mapping/ tests/ salesforce_mapping.entities.test - Tests for salesforce_mapping_crud records.
- salesforce_mapping_entity_delete in modules/
salesforce_mapping/ salesforce_mapping.module - Implements hook_entity_delete().
- salesforce_mapping_entity_update in modules/
salesforce_mapping/ salesforce_mapping.module - Implements hook_entity_update().
- salesforce_mapping_object_entity_property_get in modules/
salesforce_mapping/ salesforce_mapping.module - Callback to get the salesforce mapping object for an entity.
File
- modules/
salesforce_mapping/ salesforce_mapping.module, line 524
Code
function salesforce_mapping_object_load_by_drupal($entity_type, $entity_id, $reset = FALSE) {
$conditions = array(
'entity_id' => $entity_id,
'entity_type' => $entity_type,
);
return salesforce_mapping_object_load(FALSE, $conditions, $reset);
}