[drupal-devel] rewrite node queries

Negyesi Karoly chx at mail.tvnet.hu
Mon Jan 17 19:55:39 UTC 2005

> 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?

More information about the drupal-devel mailing list