[翻译:陈市明 摘自:http://drupal.org/node/49768]
Node对象:
[name] => 创建结点的用户名
[date]
=> 创建结点的时间
[status]
=> 是否发布{True:发布|False:未发布
}(在action+workflow中可以做审核处理)
[moderate]
=> 是否可修改{0:只读|1:修改}
[promote]
=> 是否发布首页{0:是|1:否}
[sticky]
=> 是否置顶{0:否|1:是}
[revision]
=>
TRUE/FALSE this is a new revision (if TRUE, will be saved as a separate entry in the database)
[comment]=> 对该结点是否允许添加,阅读或者是对其设置权限
[simple_access]=> 对权限模块的一个
[title] => 显示结点页面的标题
[taxonomy] => 分类(数组,具体查看Taxonomy模块)
[body] => 结点的内容
[format] => 符合Filter模块的Content内容
[uid] => 创建结点的用户ID
[created] => 创建结点的Unix类型的时间戳
[type] => 结点类型(如:book,page,forum,具体查看cck模块)
[teaser] => 内容概要
[validated] => 该结点是否有效{0:否|1:是}(是否已经保存)
[changed] => 修改结点的Unix类型的时间戳[nid] => 结点ID原文:
&$node - Node object
[name] => Username of node creator
[date] => Date the node was created
[status] => TRUE/FALSE = published/unpublished
[moderate] => Moderation enabled (0|1)
[promote] => Promoted to front page (0|1)
[sticky] => Sticky (0|1)
[revision] => TRUE/FALSE this is a new revision (if TRUE, will be saved as a separate entry in the database)
[comment] => whether comments can be added, read, or accessed, for this node
[simple_access] => Array -- A list of permissions for the Simple Access module
(
[view] => 0
)
[title] => Page title
[taxonomy] => Array -- Taxonomy classification
(
[0] => 0
)
[body] => Body content of node
[format] => which filter applies to this content.
[uid] => User ID of node creator
[created] => UNIX timestamp of node creation date.
[type] => Type of node (e.g. book, page, forum)
[teaser] => Teaser (the initial part of the body)
[validated] => has the node passed validation? (0|1) (is it ready to be saved).
[changed] => UNIX timestamp of last time node was changed.
[nid] => Node ID