You are here

function _sf_node_import_cck_todate in Salesforce Suite 5.2

Same name and namespace in other branches
  1. 7 sf_entity/sf_entity.module \_sf_node_import_cck_todate()
1 string reference to '_sf_node_import_cck_todate'
sf_node_fieldmap_objects in sf_node/sf_node.module
Implementation of hook_fieldmap_objects_alter().

File

sf_node/sf_node.module, line 174
Integrates the core node object and various node related modules with the SalesForce API.

Code

function _sf_node_import_cck_todate(&$node, $key, $source, $field) {
  $key = substr($key, 0, strlen($key) - 7);
  $data = $node->{$key};
  $data[0]['value2'] = $source->{$field};
  $node->{$key} = $data;
}