Closed (fixed)
Project:
Entityreference backreference
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2013 at 05:12 UTC
Updated:
24 Apr 2015 at 11:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jpstrikesback commentedAnd the patch.
Comment #2
jpstrikesback commentedComment #3
jpstrikesback commentedComment #4
jsacksick commentedI didn't add per bundle properties, if you want that, I think you should do something like the following code :
$info[$target]['properties']['bundles'][$bundle].However I added support for other entity types, it should also works for commerce_product_reference etc.
Comment #5
jantoine commentedIt seems like jpstrikesback original request was for source specific backreference fields where as jsacksick suggestion in #4 would address target specific backreference fields. It just so happens that I created target specific patch. This will help prevent backreference fields from being available on bundles they shouldn't be. I did not tackle the original source specific request as that would require an update hook to rename fields and moving existing data. Patch attached.
Comment #6
jsacksick commentedCommitted, thanks!