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