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.
The following method of FileStyles gives a broken link. Version 2 of media module doesn't provide such a link, maybe this bit should test for version before providing a link that doesn't work?
function linkToMedia($effect) {
// If we're using the media module, then link to its media page.
if (module_exists('media') && ($fid = $this->getFid())) {
$link = $this->setLink('media/'. $fid);
}
...
Comments
Comment #1
damontgomery CreditAttribution: damontgomery commentedSee #1414016: Media 2.x uses file entity and therefore file/[fid] URLs