Is there any way to know which theme hook or template is being used to output certain area of a page Is there any way to know which theme hook or template is being used to output certain area of page? I am showing different menus on a page and i want to know which theme hook is being used to output particular menu and links of menu.

I tried dpm($variables) in function theme_menu_links($variables) in common.inc just to make sure if this theme hook is being used to output the links of menu but this theme hook is not being called and no output is printed. Then certainly this theme hook is overridden by other module or by theme.

Is it possible to know list of all available hooks and templates files for a particular are of a page like block, menu etc with the active theme hook used to output that area?
Yes, there is a module for that: Theme Developer.


  Firebug for Drupal themeing


Note that this is a heavy module, enable it only when needed and on your local machine.