Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Double Reference

15 sites No security coverage
View on drupal.org

This module provides a single field that allows you to select two separate entities. One entity reference is considered primary, while the other is attached. The two selections function independently within the single field.

Provides a single field item that contains two entity reference fields.

One field is the primary that uses all the normal entity reference field forms, the other is an attached field which has most, but not all, of the same options. The two fields work together to form one field.

Notes:

  • The two fields do not interact. That is, changing the value in one does not affect the value in the other. This could be done with a new field widget if someone wants to provide a patch.
  • The attached field uses the default referencing method, nothing fancy like views or entity browsers. The primary field can use everything an entity reference field normally does.

Similar modules:
Double Field - Does not work with references and references are complex enough that it would have been difficult to add it as a patch.
Reference value pair - Only one reference and I needed two.

Acknowledgements:
Thanks to Lullabot for their article that helped me with the initial customization that turned into this module.
Thanks to Mediacurrent, my employer, for providing internal time to work on it when I ran out of weekend.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Apr 2025
Latest release
4 months ago
Releases (12 mo)
1 ▼ from 3
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.0.0-alpha5 Pre-release 9–11 Apr 14, 2026
2.0.0-alpha4 Pre-release 9–11 Jul 16, 2025
2.0.0-alpha3 Pre-release 9–11 May 14, 2025
2.0.0-alpha2 Pre-release 9–10 Apr 8, 2025