Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By pauln600 on
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
Aha...
Finally found the problem - can't pass $node by reference to hook_node_view.
P.