You are here

function _sf_node_import_cck_todate in Salesforce Suite 7

Same name and namespace in other branches
  1. 5.2 sf_node/sf_node.module \_sf_node_import_cck_todate()

File

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

Code

function _sf_node_import_cck_todate(&$node, $drupal_fieldname, $drupal_field_definition, $sf_data, $sf_fieldname, $sf_field_definition) {

  // drupal_* string functions are not necessary since these are machine names.
  $key = substr($drupal_fieldname, 0, strlen($drupal_fieldname) - 7);
  $data = $node->{$key};
  $data[0]['value2'] = $sf_data->{$sf_fieldname};
  $node->{$key} = $data;
}