Drush Snippets: Menu Trace
Random snippet of the day, find out what modules are involved in building out a given menu route definition. When you type a URI into your browser, Drupal’s menu routing system connects that to your page content by processing the path into instructions for how to build the page.
To use this script, copy the text or clone from github as a file, make it executable. It will automatically run with drush php-script. You can use --verbose for “full array notation” of each module’s change to the menu route. Or you can just use --pipe to get a list of modules and go look at the code directly.
In theory this should work with Drupal 7, but I haven’t gotten around to testing it yet.