function favicon_get_favicon_file in Favicon 7.2
Fetches the favicon URI.
This will attempt to retrieve the calculated favicon based on the current theme and base URL.
Return value
object|bool A favicon file object if one was found, or FALSE if there was a failure.
2 calls to favicon_get_favicon_file()
- favicon_html_head_alter in ./
favicon.module - Implements hook_html_head_alter().
- favicon_tokens in ./
favicon.tokens.inc - Implements hook_tokens().
2 string references to 'favicon_get_favicon_file'
- favicon_cache_clear in ./
favicon.module - Clears all favicon caches.
- favicon_menu in ./
favicon.module - Implements hook_menu().
File
- ./
favicon.module, line 63 - Module file for favicon module.
Code
function favicon_get_favicon_file() {
$file =& drupal_static(__FUNCTION__);
if (!isset($file)) {
try {
$file = DrupalFavicon::fetchFile();
} catch (Exception $e) {
watchdog_exception('favicon', $e);
$file = FALSE;
}
}
return $file;
}