[drupal-devel] rewrite node queries

Gabor Hojtsy gabor at hojtsy.hu
Mon Jan 17 20:01:59 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?

Permissions need to be checked somewhere, and I guess a language needs 
to be selected on node_load() too.


More information about the drupal-devel mailing list