You are here

function salesforce_api_fieldmap_source_bundle_enabled in Salesforce Suite 7.2

Helper function to determine whether the bundle for the Drupal entity for a given fieldmap is available.

Parameters

object $map:

Return value

boolean

2 calls to salesforce_api_fieldmap_source_bundle_enabled()
salesforce_api_fieldmap_edit_form in salesforce_api/salesforce_api.admin.inc
salesforce_api_import_salesforce_fieldmap_validate in salesforce_api/salesforce_api.module
Validation function for salesforce_api_import_fieldmap(). Makes sure that an import actually provides a handler.

File

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

Code

function salesforce_api_fieldmap_source_bundle_enabled($map) {
  $source = salesforce_api_fieldmap_objects_load('drupal', $map->drupal_entity, $map->drupal_bundle);
  return !empty($source);
}