Revision 56aebcb7
Added by Assos Assos about 8 years ago
drupal7/sites/all/modules/entityreference/entityreference.feeds.inc | ||
---|---|---|
125 | 125 |
break; |
126 | 126 |
case 'label': |
127 | 127 |
$options = $handler->getReferencableEntities($value, '='); |
128 |
$options = reset($options); |
|
129 |
$etids = array_keys($options); |
|
130 |
// Use the first matching entity. |
|
131 |
$entity_id = reset($etids); |
|
128 |
if ($options) { |
|
129 |
$options = reset($options); |
|
130 |
$etids = array_keys($options); |
|
131 |
// Use the first matching entity. |
|
132 |
$entity_id = reset($etids); |
|
133 |
} |
|
134 |
else { |
|
135 |
$entity_id = NULL; |
|
136 |
} |
|
132 | 137 |
break; |
133 | 138 |
} |
134 | 139 |
/* |
Also available in: Unified diff
Weekly update of contrib modules