开发者

finding node values in drupal

开发者 https://www.devze.com 2023-02-07 22:07 出处:网络
How does one fine the nodeauthor, node group (type) and the node content in drupal $author = user_load($node->uid);

How does one fine the node author, node group (type) and the node content in drupal

$author = user_load($node->uid);

$node->type

$node-&开发者_高级运维gt;body

Are there alternate ways of finding these values?


A good way to "find" values it to simply dump the available objects, arrays, or other variables. My personal favorite way to do that is to install the Devel module, then use the dpm() function to output variables into the message area of the page. The Drupal for Firebug module is similar, but can be used to send variables to the Firebug console. Drupal 7 includes a useful debug() command.

0

精彩评论

暂无评论...
验证码 换一张
取 消