[development] View Source in Drupal

Michael Favia michael at favias.org
Tue Oct 26 04:33:30 UTC 2010


On Mon, Oct 25, 2010 at 10:59 PM, Jin Guang Zheng <zhengj3 at rpi.edu> wrote:

> I am wondering if anyone knows whether there is a module that provides
> viewing source code of nodes in Drupal as Wikipedia's view source.

The source of a drupal node is derived from the "body" of the node,
its associated "field output" and any other modules that care to hook
into the rendering of the node upon display. As such there isn't
really a "view source" as the process for rendering each node content
type is unique and determined by the developer who implemented the
node type. This is also what makes drupal a powerful multipurpose tool
(i.e. not just encyclopedia articles). Your best bet is to research
drupal theming and fields. The $node->content variable might be of
assistance on D6 and $content on D7. Good luck. -mf


More information about the development mailing list