Drupal Duh

Drupal is a complex and powerful system, so sometimes we miss the obvious while looking for something more complicated.

Aug 11

#7

Problem: dpm() not outputting

Complex solution: Maybe it’s a permissions problem. Or caching might be it. Or your templates are missing $messages. Wait, that’s weird, exit() doesn’t end the request either.

Actual solution: You are putting your code in the wrong function, which is never being called.

submitted by beeradb