I'm implementing a block in Drupal to show comments of the user in his/her profile.
I am using EntityFieldQuery
and entity_load
and the query works fine. I'm trying to use devel module but I can't see the result by using Krumo function. Any idea what's wrong with my code or how should I use the devel module?
I got this error:
Fatal Error: call to undefined function Krumo
$items = entity_load('comment', array_keys($result['comment']));
krumo($items);
You could use kpr()
which prints output outside of the template area, or drupal_debug()
(alias dd()
) which print variables in a file called drupal_debug.txt
in the site's temp directory.