I need to use hook_node_view to add content to nodes, so I've started off with a very simple test:

function my_module_node_view($node, $view_mode, $langcode) {
  watchdog('test', 'test');
}

This isnt working. Why is nothing being written to the watchdog when a node is viewed?

Comments

nevets’s picture

Is your module called 'my_module'?

Have you tried clearing cache?