开发者

how can i see object data returned by node_load() method in Drupal?

I need to see the full object returned by node_load() method. I know we can use var_dump() method for th开发者_开发知识库is. but don't understand where and how to use the var_dump() method...

Thanks


print the output in a drupal message (I'm using var_export() to redirect the output).

drupal_set_message('<pre>'.var_export($node, true).'</pre>');

Paste these lines on the first line of the function.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜