I would like to add goto definition functionality to Drupal for theme functions. In Drupal, calls to theme('the_theme_function') generally invoke theme_the_theme_function on the backend.
Is it is possible to catch the invokation of goto definition right before it fails and reroute the invokation to to theme_$SELECTION?
Thanks,
James