Monday, January 11, 2010

Fav icon code in Drupal

The author deals with the setting of the favicon early in the document, prior to the output of the head of the document, and thereby makes the
tag available to the document head when it is output. All the other features, below, are placed in the body of the page where they will appear in the layout.


if (theme_get_setting('toggle_favicon')) { drupal_set_html_
head('<link rel="shortcut icon" href="'. check_url(theme_get_
setting('favicon')) .'" type="image/x-icon" />');}

No comments: