Xray skeleton with a power drill.

X-ray module gives a look at the skeletal structure of a site to help developers and site builders see how things work.

X-ray Features

  • A technical summary is added to the help above the main administrative sections. For example, blocks, content types, and menus are summarized on Structure; themes on Appearance; etc.
  • A table of permission titles matched to their permission machine names.
  • A table of most* hooks which Drupal invokes (and when they are invoked) and that are available to be implemented.
  • The function and arguments producing each page you visit, displayed on that page.
  • The form ID of every form you see, displayed on the form.

The development of this module is described in 94-page detail in the Module Development chapter of the Definitive Guide to Drupal 7.

Planned features (in the short term)

  • To node pages, add what content type the node is.
  • A report with a technical overview of the site content structure, with relationships between content types. (Ideally, this will be graphical.)
  • A report with explanations of what in Drupal produces each page in the menu structure.

Overall goals

  • Provide visual aids and information to help site builders understand their own sites or ones they've taken over (perhaps as integration with the Site Documentation module).
  • Provide visual aids and information useful for module developers (perhaps move these parts to Devel module).

Other modules

See also http://drupal.org/project/architecture

X-ray Background

This module is based on a suggestion submitted to the Contributed Module Ideas group by Zoë Neill-St. Clair. It was built as an example module for the Definitive Guide to Drupal 7.

* Hooks are based on naming convention, and can only all be identified by very careful grepping of the code, which this module does not do; instead, all hooks which use module_invoke() are identified.

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.0-beta2 tar.gz (12.46 KB) | zip (13.16 KB) 2011-Aug-24 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (14.78 KB) | zip (16.08 KB) 2011-Jun-25 Notes

Project Information


Maintainers for X-ray

  • mlncn - 123 commits
    last: 1 year ago, first: 2 years ago

Issues for X-ray

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Statistics (2 years)
New issues
Open bugs
Participants
nobody click here