开发者

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

开发者 https://www.devze.com 2023-02-02 19:06 出处:网络
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...

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

精彩评论

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

关注公众号