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.
Core media embeds have a error that shows on the page when the related media item has been deleted.
"The referenced media source is missing and needs to be re-embedded. "
This makes total sense. The average thing is that it shows for anonymous users, which it definitely shouldn't in my opinion. Lets fix that.
Comment | File | Size | Author |
---|---|---|---|
#2 | hide-missing-embed-message-anonymous_3154718_2.patch | 1.48 KB | DanielVeza |
Comments
Comment #2
DanielVezaI've overridden the template, added some bootstrap classes (Creditted @gareth.poole for this) and added an authenticated user check.
This could be pushed further with a new permission, but I think that's not needed for the starter theme.
Comment #3
HeikeT CreditAttribution: HeikeT at Sparks Interactive commentedTested on internal DEV and works fine! Ta!
Comment #4
HeikeT CreditAttribution: HeikeT at Sparks Interactive commentedComment #6
DanielVezaComment #8
DanielVezaCommitted, thanks!