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

Make title conditional.

parent b8b4b0de
No related branches found
No related tags found
No related merge requests found
......@@ -255,14 +255,14 @@ class FeedsNodeProcessor extends FeedsProcessor {
* Return available mapping targets.
*/
public function getMappingTargets() {
$targets = array(
'title' => array(
$type = node_type_get_type($this->config['content_type']);
$targets = array();
if ($type->has_title) {
$targets['title'] = array(
'name' => t('Title'),
'description' => t('The title of the node.'),
),
);
// Include body field only if available.
$type = node_type_get_type($this->config['content_type']);
);
}
$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