Thank Dan and Sivaji
I know of what you said, but i still can`t understand the code below:
function node_example_form http://api.drupal.org/api/function/node_example_form/6(&$node) { $type = node_get_types http://api.drupal.org/api/function/node_get_types/6('type', $node);
if ($type->has_title) { $form['title'] = array( '#type' => 'textfield', '#title' => check_plain http://api.drupal.org/api/function/check_plain/6($type->title_label), '#required' => TRUE, '#default_value' => $node->title, '#weight' => -5 ); }
see http://api.drupal.org/api/file/developer/examples/node_example.module/6/sour...
there $type is a object, how to explain it,how to understand it