You are here

function _sf_entity_import_userreference in Salesforce Suite 7.2

1 string reference to '_sf_entity_import_userreference'
sf_entity_fieldmap_objects in sf_entity/sf_entity.module

File

sf_entity/sf_entity.module, line 1433
Integrates fieldable entities with the Salesforce API.

Code

function _sf_entity_import_userreference(&$entity, $fieldkey, $drupal_field_definition, $sf_data, $sf_fieldname, $sf_field_definition) {
  $lang = _sf_entity_get_language($entity);

  // Get the data array for the field.
  list($fieldname, $column) = explode(':', $fieldkey, 2);
  $entity->{$fieldname}[$lang][0]['uid'] = salesforce_api_get_id_with_sfid($sf_data->{$sf_fieldname});
}