Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I am using a custom .tpl file to theme teasers, and I am having trouble with the value of a variable returning true even when apparently there is no value inside ($picture). I would like to see what exactly this variable contains.

How do I leverage Devel to view this variable without having to var_dump()? Currently, the teasers are inside a view which is inside a block on the home page.

share|improve this question
add comment

1 Answer

As you mentioned after enabling the Dev module, you can use dpm($variable); to get a detailed graphical listing of the array values.

share|improve this answer
add comment

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.