This originates from a request (https://drupal.org/node/1668528#comment-6544174) by @logicdesign on the Sans Druplicon project application ticket #1668528: Sans Druplicon. I've moved it here so it can be tracked independently. The request was:
I see that this module doesn't work well with admin_menu. The icon on the admin_menu bar is still the default from drupal. Is it possible to change that?I believe 80% of Drupal projects uses administration menu module.
Comments
Comment #1
cubeinspire commentedTo be more precise, the favicon appears when Admin Menu is activated and the Administration menu Toolbar style is disabled.
As I see on the admin menu module the function genrating this icon is inside the file admin_menu.inc and is called template_preprocess_admin_menu_icon. Line 907.
I think the interesting line here is:
$variables['src'] = base_path() . 'misc/favicon.ico';So the question is... is there some alter template_preprocess_hook in D7 ?
Is it possible to modify the $variables before arriving to this function ?
Othewise the favicon is hardcoded and I don't see how to change it from an external module...
How would you face this problem fatleaf ?
Comment #2
andrewkamm commentedThanks for the interest, I'll be posting on this ticket soon.
Comment #3
andrewkamm commentedI've extended the module to modify the icon shown in admin_menu. The change to the admin menu icon is done by implementing hook_admin_menu_output_alter(), though improvements have been made throughout this module to improve overall organization.
Comment #4
cubeinspire commentedThanks for the info and very nice module by the way.
Comment #5
andrewkamm commentedClosing issue as resolved.
Comment #6
javiereduardo commentedor, css: