Hi,
As we can easily extend the entityrefence behaviour, it would also be usefull to be able to modify results before rendering.
Use case:
- We extend the schema and add an extra text field to the entity reference widget.
- Text field can be filled in freely.
- On rendering we populate the result array to overwrite the referenced entity title.
If we could just populate the results before calling the entity_view() that would be great for use, and future entityreference extension.
See attached patch for this implementation.
Comment | File | Size | Author |
---|---|---|---|
#5 | entityreference-2651982-5.patch | 1.68 KB | Snehal Brahmbhatt |
| |||
feature--entityreference-alter-items.patch | 1.62 KB | harings_rob | |
|
Comments
Comment #2
harings_rob CreditAttribution: harings_rob at Harings.be commentedComment #3
harings_rob CreditAttribution: harings_rob at Harings.be commentedhttps://www.drupal.org/sandbox/tortelduif/2677666 is the module we need this patch for.
Comment #4
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 3 year old patch in #1 does not apply to the latest 7.x-1.x-dev and if still relevant needs a reroll.
Comment #5
Snehal Brahmbhatt CreditAttribution: Snehal Brahmbhatt at AddWeb Solution Pvt. Ltd. commented@Chris Matthews, Please review my attached patch, I created it for Entity reference 7.x-1.x-dev version as per requirement mentioned in #4. Hope this will help you!..
Thanks!..