[drupal-devel] rewrite node queries

Moshe Weitzman weitzman at tejasa.com
Mon Jan 17 19:22:24 UTC 2005

>> In short, you should no longer use node_access_join_sql() or 
>> node_access_where_sql() but wrap your query in a call to 
>> node_rewrite_sql().
>> I hope chx will update the upgrade-page in the module developers guide.

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

More information about the drupal-devel mailing list