I'm upgrading a custom module from Drupal 6 to 7, and replacing modulename_nodeapi ($op = 'view') with modulename_node_view... but this function is not being invoked and I have no idea why not.... I've cleared the cache and verified that node_view in node.module has been called.

?

Thanks for any suggestions,
Paul N.

Comments

pauln600’s picture

Finally found the problem - can't pass $node by reference to hook_node_view.

P.