Theme admin_menu icon

Key words and phrases: 
drupal theme admin_menu
Description & Info: 

You don't really need to, because it's set to use the favicon if you've provided one in your theme settings.

But to override this, as described in the admin_menu README, simply copy this function (hidden in admin_menu.inc at the time of this writing) to your template.php file:

<?php
/**
* Render an icon to display in the Administration Menu.
*
* @ingroup themeable
*/
function theme_admin_menu_icon() {
  return
'<img class="admin-menu-icon" src="'. (theme_get_setting('favicon') ? theme_get_setting('favicon') : url('misc/favicon.ico')) .'" width="16" height="16" alt="" />';
}
?>

And rename it to your theme or phptemplate_

Post new comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <small> <pre> <strike> <sub> <sup>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.