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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cthiebault’s picture

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

Status: Needs review » Needs work
cthiebault’s picture

Status: Needs work » Needs review
FileSize
3.57 KB