[drupal-devel] db_rewrite_sql hook

Negyesi Karoly karoly at negyesi.net
Tue Mar 1 08:47:56 UTC 2005

On Tuesday 01 March 2005 07.15, Chris Cook wrote:
> The db_rewrite_sql hook is not yet documented at Drupaldocs.

Alas it is not.

Basically, the problem is that I have problems with making an understandable 
description of what "primary table" and "primary key" is for a query. I'll 
try to get it done this day. If someone comes to IRC and discusses this 
with me, it'll help us a lot...

> I'm trying to figure out the best way to fix taxonomy.module so that
> it only shows terms which are associated with nodes which the user has
> access to.  Károly Négyesi's rewrite patch
> (http://drupal.org/node/16452) gets us part of the way but it seems
> that a db_rewrite_sql hook needs to be added to his patch. Is this
> something you can address, perhaps in a different patch if necessary,
> Károly?

I think that you want to say +1 on http://drupal.org/node/16452 :)



More information about the drupal-devel mailing list