Skip to content
Snippets Groups Projects
Commit b8b4b0de authored by Alex Barth's avatar Alex Barth
Browse files

Body is a field now.

parent 1da7a848
No related branches found
No related tags found
No related merge requests found
......@@ -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'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment