Skip to content
Snippets Groups Projects
Commit 50bfc73a authored by Sebastian Paul's avatar Sebastian Paul
Browse files

replace standard drupal favicon with higher quality one

parent 472bc44b
No related branches found
No related tags found
No related merge requests found
img/druplicon.ico

87.9 KiB

......@@ -19,7 +19,12 @@ function unity_webapp_generate_links_array() {
* Insert Javascript into the page.
*/
function unity_webapp_page_alter(&$page) {
$faviconurl = file_create_url(theme_get_setting('favicon_path', variable_get('theme_default')));
global $base_root;
$faviconurl = theme_get_setting('favicon', variable_get('theme_default'));
//replace standard drupal favicon with higher quality one
if ($faviconurl == $base_root . "/misc/favicon.ico") {
$faviconurl = $base_root . "/" .drupal_get_path("module","unity_webapp") . "/img/druplicon.ico";
}
$my_settings = array(
'pagetitle' => drupal_get_title(),
'sitename' => variable_get('site_name'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment