When a link is an image it looks really strange with both icons.

This patch changes the filter, so it does not add favicons when an Only local images are allowed.

CommentFileSizeAuthor
urlicon-notifhasimg.patch1.33 KBlordsilk

Comments

kars-t’s picture

Status: Needs review » Needs work
+++ urlicon-patched/urlicon.module	2009-02-17 22:10:40.000000000 +0100
@@ -87,6 +87,9 @@
+  # skip if this link is around an image
+  if (stripos($match[3], '<img ') !== false) return $match[0];

Please take a look at the Drupal coding standards. Comments should be // Comment. and the if clause should always use {} and line breaks. And maybe wrap this into a funtion so there is less copy & paste code.

Otherwise I think this is a good idea but maybe should get a switch for activation so the user can decide to use this.

Powered by Dreditor.