function _sf_node_export_cck_userreference in Salesforce Suite 7
Same name and namespace in other branches
- 6.2 sf_contrib/sf_contrib.module \_sf_node_export_cck_userreference()
File
- sf_entity/
sf_entity.module, line 448 - Integrates fieldable entities with the Salesforce API.
Code
function _sf_node_export_cck_userreference($node, $fieldname, $drupal_field_definition, $sf_field_definition) {
$sfid = '';
if ($uid = $node->{$fieldname}[0]['uid']) {
$sf_data = salesforce_api_id_load('user', $uid);
$sfid = isset($sf_data['sfid']) ? $sf_data['sfid'] : '';
}
return $sfid;
}