I am upgrading my site from Drupal 6 to 7.
In my D6 site I use a combination of views, cck and insert_block to display image galleries. I have one view that creates the list of gallery nodes to be displayed, and insert_block to inject a second view that displays the images related this gallery. This depends on an argument in the view, which filters the images against the node id of the gallery, which is stored in a global variable by a custom hook_nodeapi (when op="load"). Hope that makes sense!
In D7 hook_nodeapi has been replaced by new hooks, as described here: http://drupal.org/update/modules/6/7#remove_op
However, hook_node_load is now called once for the set of nodes in the list, instead of per node.
I can use arg(1) to filter against, which works when viewing the single gallery node, but not when the node appears in the list. None of the other hooks seems to be called at the right point in the flow, i.e. before processing the insert_block for the particular node.
Any suggestions?