Download & Extend

Allow behaviors to alter the definition of "is empty"

Project:Entity reference
Version:7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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().

Comments

#1

Status:active» needs review

Simple patch, except that we need some small bug fix in entityreference_field_formatter_prepare_view().

AttachmentSizeStatusTest resultOperations
1427032-entityreference-behavior-is-empty.patch5.03 KBIdlePASSED: [[SimpleTest]]: [MySQL] 66 pass(es).View details

#2

Status:needs review» fixed

Merged into 7.x-1.x.

#3

Status:fixed» closed (fixed)

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

nobody click here