Well, yes and no. I guess the key work is "like". :) More like how
Javadoc inter-spaces the class or method source on the HTML page so
that you can follow along. Doxygen and PHPdocumentor are popular
because of this. You can see examples of what I mean at <a href="http://api.drupal.org/api/function/node_add/6" target="_blank">http://api.drupal.org/api/function/node_add/6</a> where they use Doxygen output.<br><br>I guess this would be the job of the edoc-info file. But I have not
found much on how to use this or its features and limitations.<br>
<br><a href="http://api.drupal.org/api/function/node_add/6" target="_blank">http://api.drupal.org/api/function/node_add/6</a><br><br><p>modules/node/<a href="http://api.drupal.org/api/file/modules/node/node.pages.inc/6" target="_blank">node.pages.inc</a>, line 46</p>
<dl><dt>Versions</dt><dt><a href="http://api.drupal.org/api/function/node_add/4.7" target="_blank">4.6 – 4.7</a></dt><dd><code><a href="http://api.drupal.org/api/function/node_add/4.7" target="_blank">node_add($type)</a></code></dd>
<dt><a href="http://api.drupal.org/api/function/node_add/5" target="_blank">5</a></dt><dd><code><a href="http://api.drupal.org/api/function/node_add/5" target="_blank">node_add($type = NULL)</a></code></dd><dt><strong>6 – 7</strong></dt>
<dd><strong><code>node_add($type)</code></strong></dd></dl>
<p>Present a node submission form or a set of links to such forms.</p>
<h3>Code</h3>
<pre><code><span><?php<br></span><span>function</span> <span><a href="http://api.drupal.org/api/function/node_add/6" title="Present a node submission form or a set of links to such forms." target="_blank">node_add</a></span>(<span>$type</span>) {<br>
<br> <span>global</span> <span>$user</span>;<br><br> <span>$types</span> = <span><a href="http://api.drupal.org/api/function/node_get_types/6" title="Builds a list of available node types, and returns all of part of this list
in the specified format." target="_blank">node_get_types</a></span>();<br> <span>$type</span> = <span>isset</span>(<span>$type</span>) ? <a href="http://php.net/str_replace" title="mixed str_replace(mixed search, mixed replace, mixed subject [, int &replace_count])
Replaces all occurrences of search in haystack with replace" target="_blank">str_replace</a>(<span>'-'</span>, <span>'_'</span>, <span>$type</span>) : <span>NULL</span>;<br><br> <span>// If a node type has been specified, validate its existence.<br>
</span> <span>if</span> (<span>isset</span>(<span>$types</span>[<span>$type</span>]) && <span><a href="http://api.drupal.org/api/function/node_access/6" title="Determine whether the current user may perform the given operation on the
specified node." target="_blank">node_access</a></span>(<span>'create'</span>, <span>$type</span>)) {<br> <span>// Initialize settings:<br></span> <span>$node</span> = <span>array</span>(<span>'uid'</span> => <span>$user</span>-><span>uid</span>, <span>'name'</span> => (<span>isset</span>(<span>$user</span>-><span>name</span>) ? <span>$user</span>-><span>name</span> : <span>''</span>), <span>'type'</span> => <span>$type</span>, <span>'language'</span> => <span>''</span>);<br>
<br><br> <span><a href="http://api.drupal.org/api/function/drupal_set_title/6" title="Set the title of the current page, for display on the page and in the title bar." target="_blank">drupal_set_title</a></span>(<span><a href="http://api.drupal.org/api/function/t/6" title="Translate strings to the page language or a given language." target="_blank">t</a></span>(<span>'Create @name'</span>, <span>array</span>(<span>'@name'</span> => <span>$types</span>[<span>$type</span>]-><span>name</span>)));<br>
<br> <span>$output</span> = <span><a href="http://api.drupal.org/api/function/drupal_get_form/6" title="Retrieves a form from a constructor function, or from the cache if
the form was built in a previous page-load. The form is then passesed
on for processing, after and rendered for display if necessary." target="_blank">drupal_get_form</a></span>(<span>$type</span> .<span>'_node_form'</span>, <span>$node</span>);<br><br> }<br><br> <span>return</span> <span>$output</span>;<br>
}<br><span>?></span></code></pre><br><br><br><br clear="all"><br>-- <br>Carl McDade<br>Content Management Systems Consultant<br><a href="http://www.hiveminds.co.uk">www.hiveminds.co.uk</a><br>________________________<br>