Support Entity API discovery of fields

Originally reported issue

Field Token Value fields added to entityform bundle are not discovered by entity_get_all_property_info('entityform');

I have not dug into this further. From a quick search, field_token_value may need to implement hook_entity_property_info_alter() to inform the entity api of itself.

This may need to be a feature request to support Entity API instead of a bug report.

Comments

jasonawant created an issue. See original summary.

haydent’s picture

That is true, I have missed the Entity integration. I believe that it should just require the property_type being set within the hook_field_info():

https://www.drupal.org/docs/7/api/entity-api/property-info-for-fields

jasonawant’s picture

Title: Field Token Value fields added to entityform bundle are not discovered by entity_get_all_property_info() » Support Entity API discovery of fields
Version: 7.x-1.0 » 7.x-1.x-dev
Category: Bug report » Feature request
Issue summary: View changes
Status: Active » Needs review

Hi haydent,

Thank you for the response and direction. That indeed fixed the issue! Here's a patch.

jasonawant’s picture

StatusFileSize
new341 bytes

  • jasonawant authored 1ed9151 on 7.x-1.x
    Issue #2895226 by jasonawant: Support Entity API discovery of fields
    
haydent’s picture

Status: Needs review » Fixed

Thanks jasonawant. The fix is fine so have committed it to the dev branch. I will be creating a new stable release within the next could of days. Going to update this to be fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.