Problem/Motivation

Token support is currently identical to what is provided for Entity Reference. Examples (including delta-specific tokens):

  • [crm_contact:field_my_field]
  • [crm_contact:field_my_field:0]
  • [crm_contact:field_my_field:0:entity]
  • [crm_contact:field_my_field:0:target_id]
  • [crm_contact:field_my_field:1]
  • [crm_contact:field_my_field:X]
  • (where X is an integer delta)

It should take into account the novel "Primary" aspect of this module.

Steps to reproduce

Proposed resolution

Add tokens such that the following are also available:

  • [crm_contact:field_my_field:primary]
  • [crm_contact:field_my_field:primary:entity]
  • [crm_contact:field_my_field:primary:target_id]
  • [crm_contact:field_my_field:X:is_primary]

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jdleonard created an issue. See original summary.

jdleonard’s picture

bluegeek9’s picture

Assigned: Unassigned » bluegeek9

bluegeek9’s picture

Assigned: bluegeek9 » Unassigned
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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