You are here

function _sf_node_export_cck_default in Salesforce Suite 5.2

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

File

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

Code

function _sf_node_export_cck_default($source, $field) {

  // Get the data array for the field.
  $data = $source->{$field};

  // Return the first value; currently doesn't support multiple value fields.
  return $data[0]['value'];
}