Thank Dan and Sivaji<br><br>I know of what you said, but i still can`t understand the code below:<br><br><pre class="php"><code><span class="php-keyword">function</span> <span class="php-function-or-constant"><a href="http://api.drupal.org/api/function/node_example_form/6" title="Implementation of hook_form()." class="local">node_example_form</a></span>(&amp;<span class="php-variable">$node</span>) {<span class="php-comment"><br>
</span>  <span class="php-variable">$type</span> = <span class="php-function-or-constant"><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." class="local">node_get_types</a></span>(<span class="php-string">&#39;type&#39;</span>, <span class="php-variable">$node</span>);<br><br>  <span class="php-keyword">if</span> (<span class="php-variable">$type</span>-&gt;<span class="php-function-or-constant">has_title</span>) {<br>
    <span class="php-variable">$form</span>[<span class="php-string">&#39;title&#39;</span>] = <span class="php-keyword">array</span>(<br>      <span class="php-string">&#39;#type&#39;</span> =&gt; <span class="php-string">&#39;textfield&#39;</span>,<br>
      <span class="php-string">&#39;#title&#39;</span> =&gt; <span class="php-function-or-constant"><a href="http://api.drupal.org/api/function/check_plain/6" title="Encode special characters in a plain-text string for display as HTML." class="local">check_plain</a></span>(<span class="php-variable">$type</span>-&gt;<span class="php-function-or-constant">title_label</span>),<br>
      <span class="php-string">&#39;#required&#39;</span> =&gt; <span class="php-function-or-constant">TRUE</span>,<br>      <span class="php-string">&#39;#default_value&#39;</span> =&gt; <span class="php-variable">$node</span>-&gt;<span class="php-function-or-constant">title</span>,<br>
      <span class="php-string">&#39;#weight&#39;</span> =&gt; -<span class="php-constant">5</span><br>    );<br>  }<br></code></pre>see <a href="http://api.drupal.org/api/file/developer/examples/node_example.module/6/source">http://api.drupal.org/api/file/developer/examples/node_example.module/6/source</a><br>
<br>there $type is a object, how to explain it,how to understand it<br><br><br>