Mercurial > hg > drupalISMI
comparison relation_processor/nodes.inc @ 20:bdf91a4a40ff
fix problem with newer relation feed modules.
author | casties |
---|---|
date | Fri, 18 Sep 2015 18:25:10 +0200 |
parents | 1c73c660c2f2 |
children |
comparison
equal
deleted
inserted
replaced
19:ca1e02a2a9c4 | 20:bdf91a4a40ff |
---|---|
111 /*callback for relation_types | 111 /*callback for relation_types |
112 * | 112 * |
113 * | 113 * |
114 */ | 114 */ |
115 function relation_feeds_set_relation_type($source, $entity, $target, $terms, $mapping = array()) { | 115 function relation_feeds_set_relation_type($source, $entity, $target, $terms, $mapping = array()) { |
116 | |
116 if (empty($terms)) { | 117 if (empty($terms)) { |
117 return; | 118 return; |
118 } | 119 } |
119 | 120 |
120 // don't Handle non-multiple values. | 121 // assume array has only one term |
121 if (is_array($terms)) { | 122 if (is_array($terms)) { |
122 return; | 123 $terms = $terms[0]; |
123 } | 124 } |
124 | 125 |
125 | 126 |
126 dpm("CHECK: TYPE"); | |
127 dpm($terms); | |
128 | 127 |
129 $types=relation_get_types(array($terms)); | 128 $types=relation_get_types(array($terms)); |
130 | 129 |
131 | 130 |
132 if(sizeof($types)==0){ //typ gibt es nicht dann erzeuge mit defualt werten #TODO konfigurierbar? | 131 if(sizeof($types)==0){ //typ gibt es nicht dann erzeuge mit defualt werten #TODO konfigurierbar? |