Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I'm working on a template and I'm using kpr() from devel to look at the values defined in $variables. One of them is the node in question, and what gets displayed is a big infinity sign indicating recursion.

Is there any way to get around this to have a look at what data I actually have available in the node object?

What is it in the node that creates the recursion?

share|improve this question

1 Answer

up vote 2 down vote accepted

You cannot get around this in the sense that kpr($variables) will always display this unless you hack the implementation of krumo (the library that kpr uses).

Use

kpr($variables['node'])

to display the node instead.

Also, the node page has a devel tab that does exactly this.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.