Commit 1c8f530c authored by renatog's avatar renatog Committed by Renato Gonçalves H
Browse files

Issue #3013421 by RenatoG, jas1988: Error: Call to undefined function...

Issue #3013421 by RenatoG, jas1988: Error: Call to undefined function entity_get_info() in field_collection_host_entity_types() modules/contrib/field_collection/field_collection.tokens.inc) #0
parent 8d1a73b0
......@@ -131,7 +131,11 @@ function field_collection_host_entity_types() {
if ($host_entity_types === FALSE) {
$host_entity_types = array();
$entity_types = entity_get_info();
if (function_exists('entity_get_info')) {
$entity_types = entity_get_info();
}
// Look for all field instances, filter them by type == 'field_collection'
// and map the entity type it's connected to to the returned list.
foreach (field_info_field_map() as $field_instance) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment