Whenever I view a node page, I want to call a function but I'm not sure how to do that.
I was thinking I should use hook_menu()
and declare the path as node/%, and attach a callback function to that path. Is that the right way, or is there a correct/better way?