Drupal Association members fund grants that make connections all over the world.
adds a formatter to the link field that adds the host favicon to the front of the link. It adds the favicon while still allowing you to choose, from the other formats, the format of the actual link.
The module currently has 3 different ways of grabbing the favicons.
Google shared service
Builtin PHP scraper with local caching.
The first 2 are web services while the built in scrapper is as the name suggests, a local PHP function that retrieves the favicon, stores it locally and keeps the file in it's original format which should not be a problem with modern browsers (as opposed to the web services that seem to convert to .png). The upside of this is that if the original favicon is animated, the animation is retained.
The builtin scraper is the default and seems to detect the favicons the best.
A use case of this module might be if users of your site are able to add links to their profiles on other sites, adding the favicon in front of each link makes each links destination more obvious.
Installation and usage:
Install the module the usual way.
Navigate to the 'manage fields' section of the content type that you wish to have favicon links.
Add a link field if it does not yet have one.
Navigate the the 'manage display' page for the content type.
Select the 'Favicon link' as the format.
Select the format for the actual link in the settings form that appears.
Enjoy favicon goodness.
There is an admin page at: admin/config/media/favicon_formatter
This page allows you to set the favicon cache lifetime and delete cached favicons.
Copy the theme_link_favicon_formatter_favicon function from the link_favicon_formatter.module file and paste it into your themes template.php file.
Rename the function to MYTHEME_link_favicon_formatter_favicon where MYTHEME is the name of your theme.
Edit the function to output what you need.
- Maintenance status: Minimally maintained
- Development status: Maintenance fixes only
- Module categories: Content Display, Fields, Media
- Reported installs: 307 sites currently report using this module. View usage statistics.
- Downloads: 5,935
- Last modified: July 30, 2016
- Stable releases are covered by the security advisory policy.
Look for the shield icon below.