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.


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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