[drupal-devel] rewrite node queries

Dries Buytaert dries at buytaert.net
Mon Jan 17 19:01:36 UTC 2005


Dries Buytaert wrote:
> I just committed chx's node query rewrite patch.  If your module queries 
> the node table, you might want to look into issue #14731 
> (http://drupal.org/node/14731) and update your module accordingly.
> 
> 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.

Chx sent me a snippet which I added to the upgrade guide (after I made 
some modifications): http://drupal.org/node/12347.

-- 
Dries Buytaert  ::  http://www.buytaert.net/



More information about the drupal-devel mailing list