From: Alex Barth Date: Mon, 20 Sep 2010 18:31:45 +0000 (+0000) Subject: Body is a field now. X-Git-Tag: 7.x-1.0-alpha1~3 X-Git-Url: http://drupalcode.org/project/feeds.git/commitdiff_plain/b8b4b0dec95fcb13c1e358f1f9a831e2b98d91bc Body is a field now. --- diff --git a/plugins/FeedsNodeProcessor.inc b/plugins/FeedsNodeProcessor.inc index ffec337..6a813ae 100644 --- a/plugins/FeedsNodeProcessor.inc +++ b/plugins/FeedsNodeProcessor.inc @@ -246,10 +246,6 @@ class FeedsNodeProcessor extends FeedsProcessor { if (in_array($target_element, array('url', 'guid'))) { $target_node->feeds_node_item->$target_element = $value; } - elseif ($target_element == 'body') { - $target_node->teaser = node_teaser($value); - $target_node->body = $value; - } elseif (in_array($target_element, array('title', 'status', 'created', 'nid', 'uid'))) { $target_node->$target_element = $value; } @@ -267,11 +263,6 @@ class FeedsNodeProcessor extends FeedsProcessor { ); // Include body field only if available. $type = node_type_get_type($this->config['content_type']); - // Using 'teaser' instead of 'body' forces entire content above the break. - $targets['body'] = array( - 'name' => t('Body'), - 'description' => t('The body of the node. The teaser will be the same as the entire body.'), - ); $targets += array( 'nid' => array( 'name' => t('Node ID'),