In ctools_entity_from_field_get_children() the naming scheme of entity from field relationships is defined as follows:

$plugin['title'] = t('@to_entity from @from_entity (on @from_entity: @field_label)', $replacements);

Example of a relationship name that you will get from a taxonomy field with label "Category": "Taxonomy Term from Node (on Node: Category)."

Suppose you have 2 different fields with the label "Category", then their relationships will end up with the same name. Now which one should I choose to get the relationship I want to add in page manager? They are not disginguishable from each other.

Maybe it would be a good idea to add the field identifier in the name somewhere?

CommentFileSizeAuthor
#1 1348214-1.patch1.14 KBCyberwolf
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Cyberwolf’s picture

Status: Active » Needs review
FileSize
1.14 KB

Attaching a patch.

merlinofchaos’s picture

Status: Needs review » Fixed

Man. Those strings are pretty long as it is. But I cannot fault the logic, either. Committing, though I wish I had a better solution.

Status: Fixed » Closed (fixed)

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