function _sf_node_export_cck_todate in Salesforce Suite 5.2
Same name and namespace in other branches
- 7 sf_entity/sf_entity.module \_sf_node_export_cck_todate()
1 string reference to '_sf_node_export_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 162 - Integrates the core node object and various node related modules with the SalesForce API.
Code
function _sf_node_export_cck_todate($source, $field) {
// Get the name of the actual CCK field.
$key = substr($field, 0, strlen($field) - 7);
// Get the data array for the field.
$data = $source->{$key};
// Return the to date from the field data.
return $data[0]['value2'];
}