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.
I'm working on a module providing an hierarchical structure implemented as an Entity Reference behavior: http://drupal.org/sandbox/damz/1427028
In the case of root nodes, I want the "-None-"
value to be still stored in the tree, because it is significant. In that case, I need to be able to tell Entity Reference "it's ok to store empty references", thus overriding entityreference_field_is_empty()
.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1427032-entityreference-behavior-is-empty.patch | 5.03 KB | Damien Tournoud |
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedSimple patch, except that we need some small bug fix in
entityreference_field_formatter_prepare_view()
.Comment #2
Damien Tournoud CreditAttribution: Damien Tournoud commentedMerged into 7.x-1.x.