[support] what will return of node_get_types('type', $node)
chen teaman
54teaman at gmail.com
Tue Dec 9 10:33:04 UTC 2008
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/source
there $type is a object, how to explain it,how to understand it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20081209/5bc0da0f/attachment-0001.htm
More information about the support
mailing list