On my Drupal 7 Site I am trying to create my very first own module. I've got a custom node_insert hook like the one below:
function sample_node_insert($node){
dpm($node);
var_dump($node);
}
I just want to see what is inside of $node, but I just can't get it! I tried creating a new node and watching out for some output, but I couldn't manage to find any. What am I doing wrong?
you can do exit();
after printing, to make sure no other implementation of this hook get ran.