diff --git a/entity_token.tokens.inc b/entity_token.tokens.inc index e3a8efb..d6d9e5e 100644 --- a/entity_token.tokens.inc +++ b/entity_token.tokens.inc @@ -133,7 +133,7 @@ function entity_token_token_info_alter(&$info) { foreach (entity_plus_get_all_property_info($entity_name) as $name => $property) { // Skip touching the definitions for image and date fields, // as these are created in core. - if (!empty($property['field']) && in_array($field_info_map[$name]['type'], array('date', 'datetime', 'datestamp', 'image',))) { + if (array_key_exists($name, $field_info_map) && in_array($field_info_map[$name]['type'], array('date', 'datetime', 'datestamp', 'image',))) { continue; }