Similar to http://drupal.org/node/669636 also the handlers of drupal commerce could use the render_as_link system.

One example attached as patch

This allow the user to use the "rewrite output of this field" feature of views fields.

Comments

pcambra’s picture

Issue tags: +views, +dcsprint5

This other issue should go first: #1032598: Add uri callback to those entities that are missing one because we need to use the entity uri callback instead a fixed url

rszrama’s picture

Status: Active » Postponed (maintainer needs more info)

I've committed a fix for the other issue, but I'm not sure what we need to do for this one. It could be I'm just confused by your example, because you're demonstrating the code on a Views field handler that's already for a link field. Are you saying we should add render_link() methods to all of our field handlers? Or is this really just for our various *_link handlers?

If it's the latter, that should be a piece of cake and I could get it in pretty quickly. Given your example, I'm also not exactly sure why this depends on entity_uri().

bojanz’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)