@@ -110,7 +110,17 @@ class EntityReference_SelectionHandler_Views implements EntityReference_Selectio
|
||||
// Get the results.
|
||||
$result = $this->view->execute_display($display_name, $args);
|
||||
}
|
||||
return $result;
|
||||
|
||||
$return = array();
|
||||
if ($result) {
|
||||
$target_type = $this->field['settings']['target_type'];
|
||||
$entities = entity_load($target_type, array_keys($result));
|
||||
foreach($entities as $entity) {
|
||||
list($id,, $bundle) = entity_extract_ids($target_type, $entity);
|
||||
$return[$bundle][$id] = $result[$id];
|
||||
}
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user