At the moment the "Other endpoint" formatter for the dummy field only displays a list of links. For most uses of relation (2-ary relations) this is a bit stupid, as it only displays a list with one entry. It would make more sense, in these cases, to display just the single link. Attached is a patch that does just that.
After I wrote the patch, I relised that it's probably too simple, and that there should be a customisable display, akin to what views does for multiple fields - i.e. you can choose to display the links as a list (ordered/unordered), or choose a text-based separator (e.g. comma separation). I will start work on such a patch. Thoughts?
Comments
Comment #1
naught101 commentedFix for http://api.drupal.org/comment/22918#comment-22918 and #1187032: theme_link needs to be clearer about saying not to call it directly
Comment #2
naught101 commentedThis avoids changing the relation_default display.
Comment #3
naught101 commentedCommitted to d7 and d8. Guess we might have to revisit this later, but not sure (see e.g. #1361380: Fulfill $items in hook_field_load)