Skip to content
Snippets Groups Projects
Commit 5e590b9e authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #520734 by Everett Zufelt, webernet | Dries, mgifford:...

- Patch #520734 by Everett Zufelt, webernet | Dries, mgifford: theme_feed_icon() could use more meaningful alt text.
parent 4d95e3d2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1840,10 +1840,11 @@ function theme_more_help_link($url) { ...@@ -1840,10 +1840,11 @@ function theme_more_help_link($url) {
* The url of the feed. * The url of the feed.
* @param $title * @param $title
* A descriptive title of the feed. * A descriptive title of the feed.
*/ */
function theme_feed_icon($url, $title) { function theme_feed_icon($url, $title) {
if ($image = theme('image', 'misc/feed.png', t('Subscribe to %feed-title', array('%feed-title' => $title)))) { $text = t('Subscribe to @feed-title', array('@feed-title' => $title));
return '<a href="' . check_url($url) . '" class="feed-icon">' . $image . '</a>'; if ($image = theme('image', 'misc/feed.png', $text)) {
return '<a href="' . check_url($url) . '" title="' . $text . '" class="feed-icon">' . $image . '</a>';
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment