Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Could somebody point out to me how to add a Link formatter to the Link formatter list in the display settings. I would need something like "Short, as link with title 'Link'" but with a different title: "Short, as link with title 'Download'".
Thanks a lot for your help!
Comments
Comment #1
timdavison CreditAttribution: timdavison commentedIf you don't mind writing your own (small) module to do it there is an excellent tutorial here.
http://www.grasmash.com/article/field-api-creating-your-own-field-format...
One thing to note is that the field type for the link is 'link_field' so the entry in the array for field types is as follows:
'field types' => array('link_field'),
Hope that helps.
Comment #2
jcfiala CreditAttribution: jcfiala commentedThis looks answered, so I'm going to set it to 'Fixed'.
Thanks, @timdavison, for answering the question.