1

I called krumo() inside hook_node_load().

function mymodule1_node_load($nodes, $types) {
    krumo($nodes);
}

It works on my front page, but not on a node page. I get this error message:

Fatal error: Call to undefined function krumo() in C:\wamp\vhosts\mydrupal72\sites\all\modules\my_customs\mymodule1\mymodule1.module on line 126

Why can't I run krumo() on a node page?

3
  • because krumo() is not defined.
    – No Sssweat
    Mar 14, 2017 at 4:53
  • Huh?? How is it not defined? Devel module is installed and enabled. Why does it work on front page but not a node page?
    – okey_on
    Mar 14, 2017 at 4:56
  • 2
    Try to use dsm() or dpm() instead
    – Yuseferi
    Mar 14, 2017 at 6:01

1 Answer 1

0

An option would be using module_load_include(). Manually making sure it's loaded

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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