This Drupal 5 hack wraps all the output in HTML comments, so you can see what theme function needs to be overridden. (It's not needed in Drupal 6. Jus use the theme developer there.)
1. Locate includes/theme.inc
2. Locate the theme() function, and edit it to look like this (The new part are the opening and closing comments, surrounded by red type, below.)
<?php
function theme() {
static $functions;
$args = func_get_args();
$function = array_shift($args);
if (!isset($functions[$function])) {
$functions[$function] = theme_get_function($function);
}
if ($functions[$function]) {
return '<!--'. $function .'-->'. call_user_func_array($functions[$function], $args) .'<!--/'. $function .'-->';
}
}
?>This info comes from Lullabot, Nate Haug, and is NOT for use on a live site.