Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For proper entity module support we need a property_type in hook_field_info() and a hook_entity_property_info().
This would make fields accessible to modules using entity wrapper functionality etc. like Rules and Search API.
For more info see #1393452-4: Getting fields to appear on the 'Select fields to index' page
I plan to do this very soon (hopefully by tomorrow) and will post a patch.
Comment | File | Size | Author |
---|---|---|---|
#4 | phone_number-property_info-1489214-4.patch | 2.94 KB | grasmash |
#3 | phone_number-property_info-1489214-3.patch | 2.96 KB | grasmash |
#2 | phone_number-property_info-1489214-2.patch | 2.96 KB | grasmash |
Comments
Comment #1
grasmash CreditAttribution: grasmash commentedDid you ever make this change? I would love a patch!
Comment #2
grasmash CreditAttribution: grasmash commentedHere's a first attempt. It seems to be working so far! Thanks to @rooby for posting helpful links.
Comment #3
grasmash CreditAttribution: grasmash commentedJust realized I used the wrong function naming convention for this module. Updated patch attached.
Comment #4
grasmash CreditAttribution: grasmash commentedAlright. Last try. I rolled that last patch incorrectly. Monday mornings are killers.
Comment #5
rooby CreditAttribution: rooby commentedWow I never got back to this one.
Thanks for the patch, I will try to test it soon.
Comment #6
rodmaz CreditAttribution: rodmaz commentedTried to use this patch. Although no complains I don't see the fields visible.
Comment #7
rodmaz CreditAttribution: rodmaz commentedCan anyone please check this out? I could not find yet the reason but calls to entity_get_all_property_info() still do not show cck_phone fields, even after this patch.
Comment #8
gilgabar CreditAttribution: gilgabar commentedThe patch in #4 looks and works fine for me.
@rodmaz make sure you clear the cache after applying the patch.
Comment #9
RoSk0+1 for patch from #4.
Comment #10
pippopeppe CreditAttribution: pippopeppe commentedpatch #4 works with Rules! Thanks!
Comment #11
ckngThanks for all the works, committed to D7.