You are here

function _sf_node_export_body in Salesforce Suite 6.2

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

File

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

Code

function _sf_node_export_body($node, $fieldname, $drupal_field_definition, $sf_field_definition) {

  // Only add teaser text to the begining of the body if it is excluded
  // on the node object.
  if (!empty($node->teaser) and strpos($node->body, '<!--break-->') === 0) {
    return $node->teaser . $node->body;
  }
  return $node->body;
}