17 Jan
2005
17 Jan
'05
9:01 p.m.
I think that you only have to rewrite queries that return a *list* of nodes. Queries that go after a single node need not be wrapped in node_rewrite_sql() ... or i'm mistaken ...
I have similar thoughts. I have not rewritten node_load because of this. But even I am not really convinced -- for example, I am not sure what happens if someone just types node/123456. Will this request go through all the implemenations of hook_node_rewrite_sql (among them the old node_access_*_sql calls)? Is it needed?
Permissions need to be checked somewhere, and I guess a language needs to be selected on node_load() too. Goba