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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

Your Answer


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.