You are here

function _sf_node_export_cck_checkbox in Salesforce Suite 6.2

1 string reference to '_sf_node_export_cck_checkbox'
sf_node_fieldmap_objects in sf_node/sf_node.module
Implementation of hook_fieldmap_objects_alter().

File

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

Code

function _sf_node_export_cck_checkbox($source, $field) {
  $data = $source->{$field};
  if (empty($source->{$field}[0]['value'])) {
    return 'false';
  }
  else {
    return 1;
  }
}