You are here

function _sf_entity_import_nodereference in Salesforce Suite 7.2

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

File

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

Code

function _sf_entity_import_nodereference(&$entity, $fieldkey, $drupal_field_definition, $sf_data, $sf_fieldname, $sf_field_definition) {

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