Here is a patch that provides a hook to retrieve candidate referenceable nodes:
hook_node_reference_FIELD_potential_references

It is useful when you need complex queries to retrieve node.

Files: 
CommentFileSizeAuthor
#3 references-hook_node_reference_FIELD_potential_references_1988436_3.patch3.57 KBcthiebault
PASSED: [[SimpleTest]]: [MySQL] 40 pass(es).
[ View ]
#1 references-hook_node_reference_FIELD_potential_references_1988436_1.patch3.44 KBcthiebault
FAILED: [[SimpleTest]]: [MySQL] 33 pass(es), 7 fail(s), and 0 exception(s).
[ View ]
references-hook_node_reference_FIELD_potential_references.patch3.46 KBcthiebault
PASSED: [[SimpleTest]]: [MySQL] 40 pass(es).
[ View ]

Comments

StatusFileSize
new3.44 KB
FAILED: [[SimpleTest]]: [MySQL] 33 pass(es), 7 fail(s), and 0 exception(s).
[ View ]

Small fix to not display any candidates if the hook exist and it returns an empty list.

Status:Needs review» Needs work

Status:Needs work» Needs review
StatusFileSize
new3.57 KB
PASSED: [[SimpleTest]]: [MySQL] 40 pass(es).
[ View ]