Turn hook names in theme() and module_invoke() into links
Migrated issue
Reported by: marcvangend
In Drupal 6, the theme() function has become more complex. In D5, <?php theme('foo');?> used to call theme_foo(), but in D6, that is not necessarily true. This makes it harder to look up the code which returns the value for theme('foo').
Take theme_blocks() for instance (http://api.drupal.org/api/function/theme_blocks/6). It contains the following line:
$output .= theme('block', $block);The word 'theme' is nicely linked to http://api.drupal.org/api/function/theme/6, but what I'd really like to see documented here, is that the default code for this theme function can be found on http://api.drupal.org/api/file/modules/system/block.tpl.php/6/source. Would it be possible to enhance the UI, so that not only a link to the theme() documentation is provided, but also a link to the function or template that is called by theme('foo')?