Last updated August 24, 2016. Created on September 20, 2012.
Edited by volkswagenchick, mrchone, peterx, amitaibu. Log in to edit this page.

The Entity reference module provides a field type to reference entities.

Drupal 6 offered 'node_reference' and 'user_reference' field types. They were replaced in Drupal 7 by the References module. Entity reference is the new approach and handles references to every type of entity.

Dependencies

Entity API
Chaos Tool Suite

Because the references are at the entity level, they can appear in all sorts of places and modules can reuse the code everywhere.

This page is a collection of resources about the contributed Entity reference module.

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.

Comments

Gabriel Radic’s picture

Please consider adding a documentation page for the topic: "How to modify an entity reference field programmatically?"