Needs Improvement
Workable solution needs improvement
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
function _phptemplate_variables($hook, $vars = array()) {
switch ($hook) {
case 'page':
// our own hook to remove sidebars from admin pages, not relevant here
if (arg(0) == 'admin') {
$vars['sidebar_right'] = '';
}
// layout for body classes
$vars['layout'] = '';
Drupal's administration theme functionality works very simply: if the first argument of the internal path is admin, the custom theme is set to the admin theme.
This suggests that the $custom_theme variable can be set by modules to change to any arbitrary theme, and it will override the default theme.
The setting of custom_theme to admin_theme is done in system module's implementation of hook_menu:
UPDATE: The Zen Theme does this so, so much better, so we'll be stealing from it as soon as we get the chance.
Provide edit links to block and view blocks for admin users by modifying block template files in your theme.
This is very rudimentary but works for the most common blocks. I'm sure it can be generalized to work for all blocks no matter what module defines them.
Create edit-block.tpl.php
Update: On Ubuntu, so long as third level selectors are turned on for the Alt key under System > Preferences > Keyboard > Layouts > Other Options, you can click Alt
+ ,
and then c
.
On a Mac running virtualbox, this is actually option+, and c.
On a Mac (and the code for a PC) follow steps buried deep in this IM log... I wish all my tech support were like this: